Permission Checking fix in YouTube

This commit is contained in:
dragonfire535
2017-03-11 16:08:45 -05:00
parent 23d400491c
commit a54054c37b
+1
View File
@@ -18,6 +18,7 @@ class YouTubeCommand extends commando.Command {
if(message.channel.type !== 'dm') {
if(!message.channel.permissionsFor(this.client.user).hasPermission('SEND_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
if(!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return;
}
console.log("[Command] " + message.content);
let videotosearch = message.content.split(" ").slice(1).join("-");