mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Always send a type now when updating own presence (#1785)
This commit is contained in:
parent
cd4a69d009
commit
2809eb74ca
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ class ClientUser extends User {
|
|||
|
||||
if (data.game) {
|
||||
game = data.game;
|
||||
if (game.url) game.type = 1;
|
||||
game.type = game.url ? 1 : 0;
|
||||
} else if (typeof data.game !== 'undefined') {
|
||||
game = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue