From d155c1db40d4f092f16cdad6d83f9ed23256e508 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 20 Jun 2020 09:25:45 -0400 Subject: [PATCH] Fix --- commands/util-public/credit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/util-public/credit.js b/commands/util-public/credit.js index 0e77c751..0a370649 100644 --- a/commands/util-public/credit.js +++ b/commands/util-public/credit.js @@ -37,7 +37,7 @@ module.exports = class CreditCommand extends Command { const commands = this.client.registry.commands .filter(c => c.credit && c.credit.length && c.credit.find(cred => cred.name.toLowerCase().includes(cmd))) .map(com => { - const { credit } = com; + const credit = com.credit.find(cred => cred.name.toLowerCase().includes(cmd)); if (!credit.reasonURL) return `${embedURL(credit.name, credit.url)} (${credit.reason})`; return `${embedURL(credit.name, credit.url)} (${embedURL(credit.reason, credit.reasonURL)})`; });