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)); }