This commit is contained in:
Dragon Fire
2024-05-03 10:28:55 -04:00
parent e92f705824
commit 6dbd29cb03
158 changed files with 158 additions and 159 deletions
+1 -1
View File
@@ -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' }] });
}