fix disconnect issue
This commit is contained in:
parent
1a5e4cf2b8
commit
a9cbc9df01
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ class Queue<T = unknown> {
|
|||
destroy(disconnect = this.options.leaveOnStop) {
|
||||
this.#watchDestroyed();
|
||||
if (this.connection) this.connection.end();
|
||||
if (disconnect) this.connection.disconnect();
|
||||
if (disconnect) this.connection?.disconnect();
|
||||
this.player.queues.delete(this.guild.id);
|
||||
this.player.voiceUtils.cache.delete(this.guild.id);
|
||||
this.#destroyed = true;
|
||||
|
|
Loading…
Reference in a new issue