method: queue#destroy
This commit is contained in:
parent
0abfb26abc
commit
5d0e93fc26
1 changed files with 8 additions and 0 deletions
|
@ -197,6 +197,14 @@ export class Queue extends EventEmitter {
|
|||
return Object.keys(this.filters).filter((f) => !enabled.includes(f));
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroys this queue
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
destroy() {
|
||||
return this.player.stop(this.firstMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* String representation of this Queue
|
||||
* @returns {String}
|
||||
|
|
Loading…
Reference in a new issue