diff --git a/commands/Music/loop.js b/commands/Music/loop.js index feff4d30..57c174c2 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -18,12 +18,12 @@ class Loop extends Command { async run(message, args) { const voice = message.member.voice.channel; - const type = args[0]; const queue = this.client.player.getQueue(message); if (!voice) return message.error("music/play:NO_VOICE_CHANNEL"); if (!queue) return message.error("music/play:NOT_PLAYING"); + const type = args[0]; let mode = null; if (type === "queue") { mode = this.client.player.setRepeatMode(message, 2);