This commit is contained in:
Dragon Fire
2024-04-28 11:20:26 -04:00
parent 58ff24119a
commit 104f36ad97
+1 -1
View File
@@ -118,7 +118,7 @@ module.exports = class ChallengerCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0);
const img = silhouetted ? this.silhouetteImage(data) : data;
centerInBox(ctx, img, gameData.x, gameData.y, gameData.maxWidth, gameData.maxHeight);
this.centerInBox(ctx, img, gameData.x, gameData.y, gameData.maxWidth, gameData.maxHeight);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'challenger.png' }] });
}