diff --git a/src/Player.ts b/src/Player.ts index e8d8493..f978c61 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -891,11 +891,13 @@ export class Player extends EventEmitter { * @param message The message object * @param enable Enable/Disable autoplay */ - setAutoPlay(message: Message, enable: boolean): void { + setAutoPlay(message: Message, enable: boolean): boolean { const queue = this.getQueue(message); if (!queue) return void this.emit(PlayerEvents.ERROR, PlayerErrorEventCodes.NOT_PLAYING, message); queue.autoPlay = Boolean(enable); + + return queue.autoPlay; } /**