wrapText is no longer async

This commit is contained in:
Dragon Fire
2024-04-26 00:27:42 -04:00
parent fcaa13c576
commit aa78cd91c2
41 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ module.exports = class AceAttorneyCommand extends Command {
ctx.fillStyle = 'white';
ctx.textBaseline = 'top';
ctx.fillText(firstUpperCase(character), 6, 176);
let text = await wrapText(ctx, quote, 242);
let text = wrapText(ctx, quote, 242);
text = text.length > 5 ? `${text.slice(0, 5).join('\n')}...` : text.join('\n');
ctx.fillText(text, 7, 199);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: `ace-attorney-${character}.png` }] });