mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
refactor: remove redundant Client#rest and obsolete RESTManager#destroy (#2022)
This commit is contained in:
@@ -57,7 +57,6 @@ class ClientManager {
|
||||
|
||||
destroy() {
|
||||
this.client.ws.destroy();
|
||||
this.client.rest.destroy();
|
||||
if (!this.client.user) return Promise.resolve();
|
||||
if (this.client.user.bot) {
|
||||
this.client.token = null;
|
||||
|
||||
Reference in New Issue
Block a user