mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user