(kicking bot from voice channel doesn't allow it to rejoin)
This commit is contained in:
Amish Shah
2019-08-17 13:42:22 +01:00
parent 2c4d14a71b
commit c6e8fccbf0
3 changed files with 4 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class VoiceStateUpdate extends Action {
}
// Emit event
if (member && member.user.id === client.user.id && data.channel_id) {
if (member && member.user.id === client.user.id) {
client.emit('debug', `[VOICE] received voice state update: ${JSON.stringify(data)}`);
client.voice.onVoiceStateUpdate(data);
}