From d6548bccac337647ea5d07efbbd89d245f639527 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Fri, 21 May 2021 02:51:06 -0600 Subject: [PATCH] small bugs and polishes --- commands/misc/avatar.js | 2 +- commands/misc/emoji.js | 1 + commands/utility/robemote.js | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/misc/avatar.js b/commands/misc/avatar.js index ca3ecbc..ca5d4a7 100644 --- a/commands/misc/avatar.js +++ b/commands/misc/avatar.js @@ -22,7 +22,7 @@ module.exports = { try { let avem = new Discord.MessageEmbed() .setTitle(`${name.endsWith('s') ? `${name}'` : `${name}'s`} Avatar`) - .setImage(member.avatarURL({size: options.vsmall ? 128 : options.small ? 256 : 2048, dynamic: true})) + .setImage(member.avatarURL({size: options.vsmall ? 128 : options.small ? 256 : 2048, dynamic: true, format: "png"})) .setColor('c375f0') .setFooter("Natsuki", client.user.avatarURL()) if (!options.vsmall) {avem.setTimestamp();} diff --git a/commands/misc/emoji.js b/commands/misc/emoji.js index 4e1d3ee..a980907 100644 --- a/commands/misc/emoji.js +++ b/commands/misc/emoji.js @@ -25,6 +25,7 @@ module.exports = { if (m.reactions.cache.size) {Array.from(m.reactions.cache.values()).forEach(r => {if (r.emoji.id && !emotes.includes(`<${r.emoji.animated ? 'a' : ''}:${r.emoji.name}:${r.emoji.id}>`)) {emotes.push(`<${r.emoji.animated ? 'a' : ''}:${r.emoji.name}:${r.emoji.id}>`);}});} }); if (!emotes.length) {return message.channel.send("It doesn't look like anyone has sent any emoji recently. Try using the command again but adding an emoji to the message to get info on it.");} + emotes.reverse(); let emoteEmbeds = []; emotes.forEach(emote => { let spl = emote.split(':'); diff --git a/commands/utility/robemote.js b/commands/utility/robemote.js index 74c0932..304210b 100644 --- a/commands/utility/robemote.js +++ b/commands/utility/robemote.js @@ -15,8 +15,8 @@ module.exports = { .setDescription("Takes an emoji and adds it to this server, if you have the permissions.") .addField("Syntax", "`robemote [emoji] [name]`"), async execute(message, msg, args, cmd, prefix, mention, client) { - if (!message.member.permissions.has("MANAGE_EMOJI")) {return message.channel.send("You must have permissions to manage emoji in this server.");} - if (!message.guild.me.permissions.has("MANAGE_EMOJI")) {return message.channel.send("I don't have permissions to manage emoji in this server, so I can't add any emotes.");} + if (!message.member.permissions.has("MANAGE_EMOJIS")) {return message.channel.send("You must have permissions to manage emoji in this server.");} + if (!message.guild.me.permissions.has("MANAGE_EMOJIS")) {return message.channel.send("I don't have permissions to manage emoji in this server, so I can't add any emotes.");} if (!args.length) { return message.channel.send(new Discord.MessageEmbed() .setTitle("Add Emoji")