From f9662bc174f8860fecccf36c0f68360cb52f54fa Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Wed, 11 Mar 2020 14:06:15 +0200 Subject: [PATCH] External emojis permissions check --- struct/funcs/exe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/struct/funcs/exe.js b/struct/funcs/exe.js index 5d01d27e..34f00ae5 100644 --- a/struct/funcs/exe.js +++ b/struct/funcs/exe.js @@ -1,7 +1,7 @@ module.exports = function (msg, args, client, Discord, prefix, command) { const permissions = msg.channel.permissionsFor(msg.client.user); if (!permissions.has('EMBED_LINKS')) return msg.channel.send('<:redx:674263474704220182> I cannot send embeds (Embed links), make sure I have the proper permissions!'); - //if (!permissions.has('EXTERNAL_EMOJIS')) return msg.channel.send('<:redx:674263474704220182> I cannot use external emojis, make sure I have the proper permissions!'); DEPRACATED! + if (!permissions.has('USE_EXTERNAL_EMOJIS')) return msg.channel.send('<:redx:674263474704220182> I cannot use external emojis, make sure I have the proper permissions!'); DEPRACATED! try { command.uses++; command.execute(msg, args, client, Discord, prefix, command);