mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Add more @readonly and clean up some stuff
This commit is contained in:
@@ -148,19 +148,13 @@ class ClientUser extends User {
|
||||
|
||||
if (data.game) {
|
||||
game = data.game;
|
||||
if (game.url) {
|
||||
game.type = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof data.afk !== 'undefined') {
|
||||
afk = data.afk;
|
||||
if (game.url) game.type = 1;
|
||||
}
|
||||
|
||||
if (typeof data.afk !== 'undefined') afk = data.afk;
|
||||
afk = Boolean(afk);
|
||||
|
||||
this.localPresence = { status, game, afk };
|
||||
|
||||
this.localPresence.since = 0;
|
||||
|
||||
this.client.ws.send({
|
||||
|
||||
Reference in New Issue
Block a user