mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +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() {
|
||||
this.client.ws.destroy();
|
||||
if (!this.client.user) return Promise.resolve();
|
||||
if (this.client.user.bot) {
|
||||
this.client.token = null;
|
||||
return Promise.resolve();
|
||||
|
|
|
|||
Loading…
Reference in a new issue