voice: more debug information

This commit is contained in:
Amish Shah
2019-02-11 17:22:17 +00:00
parent ab55acffdb
commit a705edfd0d
4 changed files with 7 additions and 4 deletions

View File

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