From 40486fa70b0ff3252b76e7a7eb7e65849a08f388 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 29 Jan 2021 22:23:52 -0500 Subject: [PATCH] trim credit --- commands/util-public/credit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/util-public/credit.js b/commands/util-public/credit.js index 282f5942..733918d0 100644 --- a/commands/util-public/credit.js +++ b/commands/util-public/credit.js @@ -27,10 +27,10 @@ module.exports = class CreditCommand extends Command { const embed = new MessageEmbed() .setTitle(command.name) .setColor(0x7289DA) - .setDescription(command.credit.map(credit => { + .setDescription(trimArray(command.credit.map(credit => { if (!credit.reasonURL) return `${embedURL(credit.name, credit.url)} (${credit.reason})`; return `${embedURL(credit.name, credit.url)} (${embedURL(credit.reason, credit.reasonURL)})`; - }).join('\n')); + }), 15).join('\n')); return msg.embed(embed); } const cmd = command.toLowerCase();