Trying to fix bitfield_invalid error when using stop command

This commit is contained in:
Christer Warén 2020-03-30 04:12:46 +03:00
parent c0885f929a
commit a643d05d6e

View File

@ -10,8 +10,9 @@ 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("%commands.permissions%", commands.permissions);
message.noPerms = client.messages.noPerms.replace("%command.permission%", command.permission);
msg.channel.send(client.messageEmojis["x"] + message.noPerms);
return false;
} else return true;