From f1ecb8fa5907cb26a4b6936d9ad61ab4feca8568 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 12 Jan 2020 21:24:00 -0500 Subject: [PATCH] Fix --- commands/owner/generate-credit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/owner/generate-credit.js b/commands/owner/generate-credit.js index 4bbb5da5..1cca25c9 100644 --- a/commands/owner/generate-credit.js +++ b/commands/owner/generate-credit.js @@ -17,7 +17,7 @@ module.exports = class GenerateCreditCommand extends Command { async run(msg) { const credit = []; const commands = this.client.registry.commands.filter(cmd => cmd.credit && cmd.credit.length > 1); - for (const command of commands) { + for (const command of commands.values()) { for (const credit of command.credit) { const found = credit.find(c => c.name === credit.name); if (found) {