From 7dd3f60001dc0163706fdfea873f35f1dc784f06 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Apr 2024 20:09:31 -0400 Subject: [PATCH] Fix --- commands/info/emoji-image.js | 4 ++-- framework/Client.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/info/emoji-image.js b/commands/info/emoji-image.js index 0945aad3..93a21059 100644 --- a/commands/info/emoji-image.js +++ b/commands/info/emoji-image.js @@ -33,8 +33,8 @@ module.exports = class EmojiImageCommand extends Command { const { body } = await request.get(parsed[0].url); const emojiImage = await loadImage(body); if (parsed[0].url.endsWith('svg')) { - emojiImage.width *= 4; - emojiImage.height *= 4; + emojiImage.width = 512; + emojiImage.height = 512; } const canvas = createCanvas(512, 512); const ctx = canvas.getContext('2d'); diff --git a/framework/Client.js b/framework/Client.js index 89cce100..47a252dd 100644 --- a/framework/Client.js +++ b/framework/Client.js @@ -81,7 +81,7 @@ module.exports = class CommandClient extends Client { if (msg.guild && command.clientPermissions.length) { for (const permission of command.clientPermissions) { if (msg.channel.permissionsFor(this.user).has(permission)) continue; - await msg.reply(`The \`${command.name}\` command requires me to have the "${permission}" permission.`); + await msg.reply('Looks like I\'m missing the permissions required for this command.'); return; } } @@ -105,7 +105,7 @@ module.exports = class CommandClient extends Client { if (msg.guild && command.userPermissions.length) { for (const permission of command.userPermissions) { if (msg.channel.permissionsFor(msg.author).has(permission)) continue; - await msg.reply(`You need the "${permission}" permission to use the \`${command.name}\` command.`); + await msg.reply(`You do not have the required permissions to use the \`${command.name}\` command.`); return; } }