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
@@ -49,7 +49,7 @@ module.exports = class AlertCommand extends Command {
ctx.font = this.client.fonts.get('SF-Pro-Display-Medium.otf').toCanvasString(30);
ctx.fillStyle = '#1f1f1f';
ctx.textBaseline = 'top';
let text = await wrapText(ctx, message, 540);
let text = wrapText(ctx, message, 540);
text = text.length > 3 ? `${text.slice(0, 3).join('\n')}...` : text.join('\n');
ctx.fillText(text, 48, 178);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'alert.png' }] });