Add total credits to footer

This commit is contained in:
Dragon Fire
2021-01-31 19:33:36 -05:00
parent c7791a4023
commit 93f7410b53
+2 -1
View File
@@ -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);
}
};