properly delete queue
This commit is contained in:
parent
b97e8e61fc
commit
e611143f58
1 changed files with 5 additions and 0 deletions
|
@ -33,7 +33,12 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
|
|||
|
||||
deleteQueue<T = unknown>(guild: Snowflake) {
|
||||
const prev = this.getQueue<T>(guild);
|
||||
|
||||
try {
|
||||
prev.destroy();
|
||||
} catch {}
|
||||
this.queues.delete(guild);
|
||||
|
||||
return prev;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue