mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
wrapText is no longer async
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = class PillsCommand extends Command {
|
||||
fontSize--;
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(fontSize);
|
||||
}
|
||||
const lines = await wrapText(ctx, text, 280);
|
||||
const lines = wrapText(ctx, text, 280);
|
||||
const topMost = 455 - (((fontSize * lines.length) / 2) + ((10 * (lines.length - 1)) / 2));
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
ctx.strokeStyle = 'white';
|
||||
|
||||
Reference in New Issue
Block a user