mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
resolve for not loggedin clients (#1301)
This commit is contained in:
@@ -54,6 +54,7 @@ class ClientManager {
|
||||
|
||||
destroy() {
|
||||
this.client.ws.destroy();
|
||||
if (!this.client.user) return Promise.resolve();
|
||||
if (this.client.user.bot) {
|
||||
this.client.token = null;
|
||||
return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user