Мелкие правки

This commit is contained in:
JonnyBro 2022-02-04 17:02:07 +05:00
parent df13f7a995
commit 969336e8b1

View file

@ -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);