Added VoiceStateUpdate handler and DataStore for VoiceChannels. Also added toString methods to Guilds, DMChannels, ServerChannels and Users.

This commit is contained in:
hydrabolt
2016-04-17 19:12:29 +01:00
parent 685d7b622c
commit d1d13f5c85
11 changed files with 111 additions and 2 deletions

View File

@@ -52,3 +52,7 @@ client.on('guildRoleUpdate', (guild, old, newRole) => {
client.on('presenceUpdate', (oldUser, newUser) => {
// console.log('presence from', oldUser.username, 'to', newUser.username);
});
client.on('voiceStateUpdate', (oldMember, newMember) => {
console.log('voiceState', oldMember.user.username, oldMember.voiceChannel + '', newMember.voiceChannel + '');
});