mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Fix Message Sending and Support New Features. The library now supports
all the game streaming and URL stuff and is fixed for roles #328 src/client/websocket/packets/handlers/PresenceUpdate.js
This commit is contained in:
@@ -60,11 +60,7 @@ class PresenceUpdateHandler extends AbstractHandler {
|
||||
data.user.discriminator === user.discriminator &&
|
||||
data.user.avatar === user.avatar &&
|
||||
data.user.status === user.status &&
|
||||
!(
|
||||
(data.user.game && !user.game) ||
|
||||
(!data.user.game && user.game) ||
|
||||
(data.user.game && user.game && data.user.game.name !== user.game.name)
|
||||
)
|
||||
JSON.stringify(data.user.game) === JSON.stringify(user.game)
|
||||
);
|
||||
|
||||
if (!same) {
|
||||
|
||||
Reference in New Issue
Block a user