mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -37,6 +37,6 @@ module.exports = class CircleCommand extends Command {
|
||||
ctx.closePath();
|
||||
ctx.clip();
|
||||
ctx.drawImage(data, (canvas.width / 2) - (data.width / 2), (canvas.height / 2) - (data.height / 2));
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'circle.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'circle.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user