From 548b6bf2ad3a9fd0816635059ce8e2489994863e Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Tue, 23 Feb 2021 12:13:46 +0900 Subject: [PATCH] Fix guildChannelManager.create SMALL bracket mistake --- src/managers/guildChannels.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/managers/guildChannels.ts b/src/managers/guildChannels.ts index 9d86342..2bc6837 100644 --- a/src/managers/guildChannels.ts +++ b/src/managers/guildChannels.ts @@ -66,8 +66,7 @@ export class GuildChannelsManager extends BaseChildManager< async create(options: CreateChannelOptions): Promise { if (options.name === undefined) throw new Error('name is required for GuildChannelsManager#create') - const res = ((await this.client.rest.post(GUILD_CHANNELS(this.guild.id)), - { + const res = ((await this.client.rest.post(GUILD_CHANNELS(this.guild.id), { name: options.name, type: options.type, topic: options.topic, @@ -83,7 +82,7 @@ export class GuildChannelsManager extends BaseChildManager< ? options.parent.id : options.parent, nsfw: options.nsfw - }) as unknown) as GuildChannelPayload + })) as unknown) as GuildChannelPayload await this.set(res.id, res) const channel = await this.get(res.id)