mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 22:55:00 +05:00
fix autoplay
This commit is contained in:
parent
de62c636df
commit
8f5c5aceee
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class AutoPlay extends Command {
|
||||||
const voice = message.member.voice.channel;
|
const voice = message.member.voice.channel;
|
||||||
|
|
||||||
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
|
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
|
||||||
if (!queue) return message.error("music:play:NOT_PLAYING");
|
if (!queue) return message.error("music/play:NOT_PLAYING");
|
||||||
|
|
||||||
// Gets the current song
|
// Gets the current song
|
||||||
await this.client.player.setAutoPlay(message, !queue.autoPlay);
|
await this.client.player.setAutoPlay(message, !queue.autoPlay);
|
||||||
|
|
Loading…
Reference in a new issue