napi-rs/canvas doesn't support line breaks????

This commit is contained in:
Dragon Fire
2024-05-03 01:49:01 -04:00
parent 570149028a
commit 8a5af83844
173 changed files with 332 additions and 332 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
const Command = require('../../framework/Command');
const request = require('node-superfetch');
const { createCanvas, loadImage } = require('@napi-rs/canvas');
const { createCanvas, loadImage } = require('canvas');
const path = require('path');
module.exports = class AnimeEyesCommand extends Command {
@@ -47,6 +47,6 @@ module.exports = class AnimeEyesCommand extends Command {
ctx.drawImage(rightEye, leftEyeX, leftEyeY, eyeWidth, eyeHeight);
ctx.drawImage(leftEye, rightEyeX, rightEyeY, eyeWidth, eyeHeight);
}
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'anime-eyes.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'anime-eyes.png' }] });
}
};