From 064c3a6d765adf223ad3d42f844f7a9853ebd6a9 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Wed, 31 Mar 2021 02:00:25 +0900 Subject: [PATCH] :bug: Make .edit check channel type more precisely --- src/structures/member.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/member.ts b/src/structures/member.ts index ee60bf7..eb2593a 100644 --- a/src/structures/member.ts +++ b/src/structures/member.ts @@ -88,7 +88,7 @@ export class Member extends SnowflakeBase { deaf: data.deaf, mute: data.mute, channel_id: - typeof data.channel === 'string' ? data.channel : data.channel?.id + data.channel instanceof VoiceChannel ? data.channel.id : data.channel } const res = await this.client.rest.patch(