From 2809eb74ca065cbb9b9cb3a3d968448b5b548658 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Thu, 17 Aug 2017 00:16:09 +0200 Subject: [PATCH] Always send a type now when updating own presence (#1785) --- src/structures/ClientUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index ff7261d9d..8dcafb2b7 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -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; }