mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Added VoiceStateUpdate handler and DataStore for VoiceChannels. Also added toString methods to Guilds, DMChannels, ServerChannels and Users.
This commit is contained in:
@@ -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 + '');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user