Trying to fix bitfield_invalid error when using stop command (part 2)

This commit is contained in:
Christer Warén 2020-03-30 04:20:45 +03:00
parent a643d05d6e
commit 7091769b75

View File

@ -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(!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;
};