mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
user.patch shouldn't try to touch the token (#2072)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user