🐛 Fix auto play function name

This commit is contained in:
Androz2091 2021-04-19 16:22:54 +02:00
parent 536ccb90b2
commit 8c7bda9ca2

View file

@ -891,7 +891,7 @@ export class Player extends EventEmitter {
* @param message The message object * @param message The message object
* @param enable Enable/Disable autoplay * @param enable Enable/Disable autoplay
*/ */
setAutoplay(message: Message, enable: boolean): void { setAutoPlay(message: Message, enable: boolean): void {
const queue = this.getQueue(message); const queue = this.getQueue(message);
if (!queue) return void this.emit(PlayerEvents.ERROR, PlayerErrorEventCodes.NOT_PLAYING, message); if (!queue) return void this.emit(PlayerEvents.ERROR, PlayerErrorEventCodes.NOT_PLAYING, message);