This commit is contained in:
Dragon Fire
2024-03-29 16:52:45 -04:00
parent f341c7736b
commit 2cec48fa2a
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ module.exports = class PokedexBoxSpriteCommand extends Command {
const y = Math.floor(this.id / 12) * 30;
ctx.imageSmoothingEnabled = false;
ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 250, 250);
cropToContent(ctx, canvas.width, canvas.height);
cropToContent(ctx, canvas, canvas.width, canvas.height);
return msg.say(`#${pokemon.displayID} - ${pokemon.name}`, {
files: [{
attachment: canvas.toBuffer(),