mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Мелкие правки
This commit is contained in:
parent
df13f7a995
commit
969336e8b1
1 changed files with 1 additions and 1 deletions
|
@ -18,12 +18,12 @@ class Loop extends Command {
|
||||||
|
|
||||||
async run(message, args) {
|
async run(message, args) {
|
||||||
const voice = message.member.voice.channel;
|
const voice = message.member.voice.channel;
|
||||||
const type = args[0];
|
|
||||||
const queue = this.client.player.getQueue(message);
|
const queue = this.client.player.getQueue(message);
|
||||||
|
|
||||||
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");
|
||||||
|
|
||||||
|
const type = args[0];
|
||||||
let mode = null;
|
let mode = null;
|
||||||
if (type === "queue") {
|
if (type === "queue") {
|
||||||
mode = this.client.player.setRepeatMode(message, 2);
|
mode = this.client.player.setRepeatMode(message, 2);
|
||||||
|
|
Loading…
Reference in a new issue