mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Fix
This commit is contained in:
@@ -60,6 +60,6 @@ module.exports = class WildPokemonCommand extends Command {
|
||||
ctx.textBaseline = 'top';
|
||||
ctx.font = this.client.fonts.get('PokemonGb.ttf').toCanvasString(16);
|
||||
ctx.fillText(name.toUpperCase(), 106, 205, 215);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'wild-pokemon.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'wild-pokemon.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user