mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 11:21:16 +02:00
Fix
This commit is contained in:
@@ -76,6 +76,6 @@ module.exports = class WhiteboardCommand extends Command {
|
||||
const height = resolveTopMost + ((fontSize + 10) * i);
|
||||
ctx.fillText(resolveLines[i], 195, height);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'whiteboard.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'whiteboard.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user