Require manage emojis permission in emoji

This commit is contained in:
Dragon Fire
2021-03-23 16:19:04 -04:00
parent ff518f56aa
commit 56338450d4
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@
"VIEW_AUDIT_LOG",
"VIEW_CHANNEL",
"SEND_MESSAGES",
"MANAGE_EMOJIS",
"MANAGE_MESSAGES",
"EMBED_LINKS",
"ATTACH_FILES",
+2 -2
View File
@@ -11,7 +11,7 @@ module.exports = class EmojiCommand extends Command {
memberName: 'emoji',
description: 'Responds with detailed information on an emoji.',
guildOnly: true,
clientPermissions: ['EMBED_LINKS'],
clientPermissions: ['EMBED_LINKS', 'MANAGE_EMOJIS'],
args: [
{
key: 'emoji',
@@ -23,7 +23,7 @@ module.exports = class EmojiCommand extends Command {
}
async run(msg, { emoji }) {
if (!emoji.author) await emoji.fetchAuthor();
if (!emoji.author && !emoji.managed) await emoji.fetchAuthor();
const embed = new MessageEmbed()
.setColor(0x00AE86)
.setThumbnail(emoji.url)