mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 08:11:50 +00:00
resolve for not loggedin clients (#1301)
This commit is contained in:
parent
bca101aac8
commit
c4e5292516
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue