user.patch shouldn't try to touch the token (#2072)

This commit is contained in:
bdistin
2017-10-28 11:57:50 -05:00
committed by Crawl
parent cd3d3344e8
commit cda408534a
2 changed files with 2 additions and 2 deletions

View File

@@ -88,6 +88,8 @@ class ClientUser extends User {
this.guildSettings.set(settings.guild_id, new ClientUserGuildSettings(this.client, settings)); this.guildSettings.set(settings.guild_id, new ClientUserGuildSettings(this.client, settings));
} }
} }
if (data.token) this.client.token = data.token;
} }
/** /**

View File

@@ -63,8 +63,6 @@ class User extends Base {
* @type {?Message} * @type {?Message}
*/ */
this.lastMessage = null; this.lastMessage = null;
if (data.token) this.client.token = data.token;
} }
/** /**