From 557a5838264931c8962c56acc488e5b03c0475d8 Mon Sep 17 00:00:00 2001 From: Andrey Grunev Date: Fri, 15 May 2020 12:42:36 +0300 Subject: [PATCH] Fixes error TS2783: 'type' is specified more than once --- structures/guild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);