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("-");