diff --git a/structures/guild.ts b/structures/guild.ts index a9a2d000d..537fc4886 100644 --- a/structures/guild.ts +++ b/structures/guild.ts @@ -82,7 +82,6 @@ export const createGuild = (data: CreateGuildPayload) => { const result = (await RequestManager.post(endpoints.GUILD_CHANNELS(data.id), { name, - type: options.type ? ChannelTypes[options.type] : undefined, permission_overwrites: options?.permission_overwrites ? options.permission_overwrites.map((perm) => ({ ...perm, @@ -91,6 +90,7 @@ export const createGuild = (data: CreateGuildPayload) => { })) : undefined, ...options, + type: options.type ? ChannelTypes[options.type] : undefined, })) as ChannelCreatePayload; const channel = createChannel(result);