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,7 +37,7 @@ module.exports = class DominantColorCommand extends Command {
ctx.fillRect(0, 0, canvas.width, canvas.height);
const name = ntc.name(hexColor);
return msg.say(`${hexColor.toUpperCase()} - ${name[1]}`, {
files: [{ attachment: canvas.toBuffer(), name: 'dominant-color.png' }]
files: [{ attachment: canvas.toBuffer('image/png'), name: 'dominant-color.png' }]
});
}
};
+1 -1
View File
@@ -40,6 +40,6 @@ module.exports = class FacesCommand extends Command {
ctx.fillRect(face.box.xMin, face.box.yMax, face.box.width + lineSize, lineSize);
ctx.fillRect(face.box.xMax, face.box.yMin, lineSize, face.box.height);
}
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'faces.png' }] });
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'faces.png' }] });
}
};