mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Always send a type now when updating own presence (#1785)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user