mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Fix
This commit is contained in:
@@ -90,7 +90,7 @@ module.exports = class PokedexBoxSpriteCommand extends Command {
|
||||
const height = 30 * ratio;
|
||||
ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 250, height);
|
||||
cropToContent(ctx, canvas, canvas.width, canvas.height);
|
||||
attachment = canvas.toBuffer();
|
||||
attachment = canvas.toBuffer('image/png');
|
||||
}
|
||||
return msg.say(`#${pokemon.displayID} - ${pokemon.name}`, { files: [{ attachment, name: 'box.png' }] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user