method: queue#destroy

This commit is contained in:
Snowflake107 2021-05-13 11:19:44 +05:45
parent 0abfb26abc
commit 5d0e93fc26

View file

@ -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}