mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
wrapText is no longer async
This commit is contained in:
@@ -72,7 +72,7 @@ module.exports = class GruPlanCommand extends Command {
|
||||
fontSize--;
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(fontSize);
|
||||
}
|
||||
const lines = await wrapText(ctx, step, 252);
|
||||
const lines = wrapText(ctx, step, 252);
|
||||
ctx.fillText(lines.join('\n'), x, y);
|
||||
i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user