From a54054c37bda6840405c38d1b230104317754b24 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Sat, 11 Mar 2017 16:08:45 -0500 Subject: [PATCH] Permission Checking fix in YouTube --- commands/search/youtube.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/search/youtube.js b/commands/search/youtube.js index b414028f..6cff239b 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -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("-");