From 93f7410b53b65e1eff5e798872142c579108f656 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 31 Jan 2021 19:33:36 -0500 Subject: [PATCH] Add total credits to footer --- commands/util-public/credit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/util-public/credit.js b/commands/util-public/credit.js index 479398aa..f36fee51 100644 --- a/commands/util-public/credit.js +++ b/commands/util-public/credit.js @@ -37,7 +37,8 @@ module.exports = class CreditCommand extends Command { .setDescription(command.credit.slice((page - 1) * 10, page * 10).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')); + }).join('\n')) + .setFooter(`${command.credit.length} Total Credit${command.credit.length === 1 ? '' : 's'}`); return msg.embed(embed); } };