mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Fix
This commit is contained in:
@@ -48,6 +48,6 @@ module.exports = class LicensePlateCommand extends Command {
|
||||
ctx.textBaseline = 'middle';
|
||||
ctx.font = this.client.fonts.get('LicensePlate.ttf').toCanvasString(180);
|
||||
ctx.fillText(text.toUpperCase(), base.width / 2, base.height / 2, 700);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'license-plate.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'license-plate.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user