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
+2 -2
View File
@@ -68,10 +68,10 @@ module.exports = class DearLiberalsCommand extends Command {
ctx.rotate(-12.30 * (Math.PI / 180));
ctx.fillStyle = '#002046';
ctx.font = this.client.fonts.get('Oswald-SemiBold.ttf').toCanvasString(27);
const blueLines = await wrapText(ctx, blueText, 270);
const blueLines = wrapText(ctx, blueText, 270);
ctx.fillText(blueLines.join('\n'), 207, 90);
ctx.fillStyle = '#c31a41';
const redLines = await wrapText(ctx, redText, 165);
const redLines = wrapText(ctx, redText, 165);
ctx.fillText(redLines.join('\n'), 326, 236);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'dear-liberals.png' }] });
}