diff --git a/commands/edit-meme/bart-chalkboard.js b/commands/edit-meme/bart-chalkboard.js index d4b81c47..10d1f9e4 100644 --- a/commands/edit-meme/bart-chalkboard.js +++ b/commands/edit-meme/bart-chalkboard.js @@ -52,7 +52,7 @@ module.exports = class LisaPresentationCommand extends Command { ctx.font = this.client.fonts.get('akbar.ttf').toCanvasString(19); ctx.fillStyle = 'white'; const shortened = shortenText(ctx, text.toUpperCase(), 500); - const len = ctx.measureText(shortened); + const len = ctx.measureText(shortened).width; const arr = []; for (let i = 0; i < 12; i++) arr.push(shortened); fillTextWithBreaks(ctx, arr.join('\n'), 30, 27);