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
@@ -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' }] });
}
};