mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Make presences track users and guilds, emit them in presenceUpdate
This commit is contained in:
@@ -29,8 +29,9 @@ var count = 0;
|
||||
|
||||
process.on('unhandledRejection', console.log);
|
||||
|
||||
client.on('voiceStateUpdate', (a, b) => {
|
||||
console.log(a ? a.channelID : null, b ? b.channelID : null, b.member.user.username);
|
||||
client.on('presenceUpdate', (a, b) => {
|
||||
if (b.userID !== '66564597481480192') return;
|
||||
console.log(a ? a.status : null, b.status, b.user.username);
|
||||
});
|
||||
|
||||
client.on('message', m => {
|
||||
|
||||
Reference in New Issue
Block a user