🐛 Make <Member>.edit check channel type more precisely

This commit is contained in:
Helloyunho 2021-03-31 02:00:25 +09:00
parent 9c5aea1ef8
commit 064c3a6d76

View file

@ -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(