mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix for No Permissions?
This commit is contained in:
@@ -19,7 +19,7 @@ class SoundBoardCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
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"!');
|
||||
} else {
|
||||
let voiceChannel = message.member.voiceChannel;
|
||||
|
||||
Reference in New Issue
Block a user