Implement queue flush
This commit is contained in:
@@ -20,4 +20,9 @@ module.exports = class AudioQueue {
|
||||
this.queue.push(element);
|
||||
if (this.queue.length == 1) this.playNext();
|
||||
}
|
||||
flush() {
|
||||
this.current.setVolume(0);
|
||||
this.queue=[];
|
||||
this.playNext();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user