Fix for No Permissions?

This commit is contained in:
Daniel Odendahl Jr
2017-03-19 04:21:09 +00:00
parent 9aad67e6b0
commit b826af8cf1
+1 -1
View File
@@ -19,7 +19,7 @@ class SoundBoardCommand extends commando.Command {
} }
console.log("[Command] " + message.content); console.log("[Command] " + message.content);
if(message.channel.type !== 'dm') { if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('CONNECT' || 'SPEAK')) { if(!message.channel.permissionsFor(this.client.user).hasPermission('CONNECT' && 'SPEAK')) {
message.channel.send(':x: Error! In order to do this command, you must give me the permissions to "Connect" and "Speak"!'); message.channel.send(':x: Error! In order to do this command, you must give me the permissions to "Connect" and "Speak"!');
} else { } else {
let voiceChannel = message.member.voiceChannel; let voiceChannel = message.member.voiceChannel;