From fa5de93c8d338e15d64ad569f4d9f165d05e5161 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 4 Jan 2020 15:40:00 +0000 Subject: [PATCH] oop fix --- src/commands/parseall.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/parseall.ts b/src/commands/parseall.ts index 712542c..03598d7 100644 --- a/src/commands/parseall.ts +++ b/src/commands/parseall.ts @@ -60,9 +60,11 @@ export default class Parseall extends Command { return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`; })); - if (final.map((a) => a.value).join('\n').length < 2048) embed.setDescription(final.join('\n')); + const result = final.map((a) => a.value); + + if (result.join('\n').length < 2048) embed.setDescription(result.join('\n')); else { - const split = this.client.util.splitString(final.join('\n'), 1024); + const split = this.client.util.splitString(result.join('\n'), 1024); split.forEach((s) => embed.addField('\u200B', s)); }