mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 07:11:49 +02:00
Fix
This commit is contained in:
@@ -63,6 +63,6 @@ module.exports = class CertificateCommand extends Command {
|
||||
ctx.fillText(reason, 518, 273);
|
||||
ctx.fillText(name, 518, 419);
|
||||
ctx.fillText(moment().format('MM/DD/YYYY'), 309, 503);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'certificate.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'certificate.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user