fix: Activity & Presence

#584
This commit is contained in:
Elysia
2024-07-04 20:02:20 +07:00
parent 516d8917bd
commit 3bf0d44184
2 changed files with 17 additions and 14 deletions

View File

@@ -9,6 +9,9 @@ module.exports = (client, { d: data }, shard) => {
// Check
USER_REQUIRED_ACTION(client, { d: data });
// Overwrite ClientPresence
client.presence.userId = data.user.id;
if (client.user) {
client.user._patch(data.user);
} else {