mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 05:54:44 +12:00
fix(Client): Ensure destroyed connections are not ready (#9942)
* fix(Client): ensure destroyed connections are not ready * refactor(Client): prefer `!` Co-authored-by: Aura <kyradiscord@gmail.com> --------- Co-authored-by: Aura <kyradiscord@gmail.com>
This commit is contained in:
parent
81e7866903
commit
b5e23ec2ec
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ class Client extends BaseClient {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
isReady() {
|
||||
return this.ws.status === Status.Ready;
|
||||
return !this.ws.destroyed && this.ws.status === Status.Ready;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue