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
@@ -147,7 +147,7 @@ module.exports = class PokemonAdvantageCommand extends Command {
ctx.fillText(pokemon1.name, 128, 250, 175);
ctx.strokeText(pokemon2.name, 348, 250, 175);
ctx.fillText(pokemon2.name, 348, 250, 175);
return { attachment: canvas.toBuffer(), name };
return { attachment: canvas.toBuffer('image/png'), name };
}
calculateAdvantage(pkmn1, pkmn2) {