🐛 Use channel#join() instead of setChannel()

Closes #282
This commit is contained in:
Androz2091 2021-02-19 08:16:57 +01:00
parent 4500894f94
commit da8b5bc608

View file

@ -487,7 +487,7 @@ class Player extends EventEmitter {
if (queue.voiceConnection.channel.id === channel.id) return
queue.voiceConnection.dispatcher.pause()
message.guild.voice.setChannel(channel)
channel.join()
.then(() => queue.voiceConnection.dispatcher.resume())
.catch(() => this.emit('error', 'UnableToJoin', message))
}