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