diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 4a9cdfa..e978785 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -115,6 +115,10 @@ class Queue { return this.connection.volume; } + async back() { + return await this.play(Util.last(this.previousTracks), { immediate: true }); + } + async play(src?: Track, options: PlayOptions = {}) { if (!this.connection || !this.connection.voiceConnection) throw new Error("Voice connection is not available, use .connect()!"); if (src && (this.playing || this.tracks.length) && !options.immediate) return this.addTrack(src);