mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +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) {
|
if (data.game) {
|
||||||
game = data.game;
|
game = data.game;
|
||||||
if (game.url) game.type = 1;
|
game.type = game.url ? 1 : 0;
|
||||||
} else if (typeof data.game !== 'undefined') {
|
} else if (typeof data.game !== 'undefined') {
|
||||||
game = null;
|
game = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue