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