mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Presence tracking
This commit is contained in:
@@ -48,3 +48,7 @@ client.on('guildRoleDelete', (guild, role) => {
|
||||
client.on('guildRoleUpdate', (guild, old, newRole) => {
|
||||
console.log('updated role', old.name, 'to', newRole.name, 'in', guild.name);
|
||||
});
|
||||
|
||||
client.on('presenceUpdate', (oldUser, newUser) => {
|
||||
console.log('presence from', oldUser.username, 'to', newUser.username);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user