diff --git a/mod.ts b/mod.ts index 9e5ec821a..afed7644b 100644 --- a/mod.ts +++ b/mod.ts @@ -1,39 +1,39 @@ -import createClient from "./module/client.ts"; +import createClient from "./src/module/client.ts"; -export * from "./module/client.ts"; -export * from "./module/requestManager.ts"; -export * from "./module/shardingManager.ts"; +export * from "./src/module/client.ts"; +export * from "./src/module/requestManager.ts"; +export * from "./src/module/shardingManager.ts"; -export * from "./structures/channel.ts"; -export * from "./structures/guild.ts"; -export * from "./structures/member.ts"; -export * from "./structures/message.ts"; -export * from "./structures/role.ts"; +export * from "./src/structures/channel.ts"; +export * from "./src/structures/guild.ts"; +export * from "./src/structures/member.ts"; +export * from "./src/structures/message.ts"; +export * from "./src/structures/role.ts"; -export * from "./handlers/channel.ts"; -export * from "./handlers/guild.ts"; -export * from "./handlers/member.ts"; -export * from "./handlers/message.ts"; +export * from "./src/handlers/channel.ts"; +export * from "./src/handlers/guild.ts"; +export * from "./src/handlers/member.ts"; +export * from "./src/handlers/message.ts"; -export * from "./types/activity.ts"; -export * from "./types/cdn.ts"; -export * from "./types/channel.ts"; -export * from "./types/discord.ts"; -export * from "./types/errors.ts"; -export * from "./types/fetch.ts"; -export * from "./types/guild.ts"; -export * from "./types/member.ts"; -export * from "./types/message.ts"; -export * from "./types/options.ts"; -export * from "./types/permission.ts"; -export * from "./types/presence.ts"; -export * from "./types/role.ts"; +export * from "./src/types/activity.ts"; +export * from "./src/types/cdn.ts"; +export * from "./src/types/channel.ts"; +export * from "./src/types/discord.ts"; +export * from "./src/types/errors.ts"; +export * from "./src/types/fetch.ts"; +export * from "./src/types/guild.ts"; +export * from "./src/types/member.ts"; +export * from "./src/types/message.ts"; +export * from "./src/types/options.ts"; +export * from "./src/types/permission.ts"; +export * from "./src/types/presence.ts"; +export * from "./src/types/role.ts"; -export * from "./utils/cache.ts"; -export * from "./utils/cdn.ts"; -export * from "./utils/collection.ts"; -export * from "./utils/logger.ts"; -export * from "./utils/permissions.ts"; -export * from "./utils/utils.ts"; +export * from "./src/utils/cache.ts"; +export * from "./src/utils/cdn.ts"; +export * from "./src/utils/collection.ts"; +export * from "./src/utils/logger.ts"; +export * from "./src/utils/permissions.ts"; +export * from "./src/utils/utils.ts"; export default createClient; diff --git a/src/types/guild.ts b/src/types/guild.ts index 1742291aa..d48223d32 100644 --- a/src/types/guild.ts +++ b/src/types/guild.ts @@ -446,7 +446,7 @@ export enum AuditLogs { INTEGRATION_DELETE, } -export type ChannelType = +export type ChannelTypeText = | "text" | "dm" | "news" @@ -482,7 +482,7 @@ export interface RawOverwrite { export interface ChannelCreateOptions { /** The type of the channel */ - type?: ChannelType; + type?: ChannelTypeText; /** The channel topic. (0-1024 characters) */ topic?: string; /** The bitrate(in bits) of the voice channel. */ diff --git a/src/types/message.ts b/src/types/message.ts index 026d470c1..a7e879da0 100644 --- a/src/types/message.ts +++ b/src/types/message.ts @@ -1,6 +1,7 @@ -import { ChannelType, UserPayload } from "./guild.ts"; +import { UserPayload } from "./guild.ts"; import { MemberCreatePayload } from "./member.ts"; import { Channel } from "../structures/channel.ts"; +import { ChannelType } from "./channel.ts"; export interface MentionedUser extends UserPayload { member: MemberCreatePayload;