mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 22:13:16 +00:00
Trying to fix bitfield_invalid error when using stop command
This commit is contained in:
parent
c0885f929a
commit
a643d05d6e
@ -10,8 +10,9 @@ module.exports = function (client, msg, command) {
|
|||||||
msg.channel.send(client.messageEmojis["x"] + client.messages.wrongVoiceChannel);
|
msg.channel.send(client.messageEmojis["x"] + client.messages.wrongVoiceChannel);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
console.log(command.permission);
|
||||||
if (!permissions.has(command.permission)) {
|
if (!permissions.has(command.permission)) {
|
||||||
message.noPerms = client.messages.noPerms.replace("%commands.permissions%", commands.permissions);
|
message.noPerms = client.messages.noPerms.replace("%command.permission%", command.permission);
|
||||||
msg.channel.send(client.messageEmojis["x"] + message.noPerms);
|
msg.channel.send(client.messageEmojis["x"] + message.noPerms);
|
||||||
return false;
|
return false;
|
||||||
} else return true;
|
} else return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user