This commit is contained in:
Dragon Fire
2020-06-29 13:30:16 -04:00
parent c45816b929
commit 82eff7c256
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = class MagikCommand extends Command {
magik.setFormat('jpeg');
const attachment = await this.toBuffer(magik);
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');
return msg.say({ files: [{ attachment, name: 'magik.png' }] });
return msg.say({ files: [{ attachment, name: 'magik.jpeg' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}