From 1fa290f6b10584b0c4ac32cc3637cb9c0e405e41 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 25 May 2022 17:08:07 -0400 Subject: fix(massEvidence): use id not index --- src/commands/moderation/massEvidence.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/moderation') diff --git a/src/commands/moderation/massEvidence.ts b/src/commands/moderation/massEvidence.ts index 0fc3ad0..8731de2 100644 --- a/src/commands/moderation/massEvidence.ts +++ b/src/commands/moderation/massEvidence.ts @@ -76,10 +76,10 @@ export default class MassEvidenceCommand extends BushCommand { const res = await Promise.all(promises); - const lines = ids.map((_, i) => { + const lines = ids.map((id, i) => { const case_ = res[i]; - if (!case_) return `${util.emojis.error} ${i} - no case found.`; - return `${util.emojis.success} ${i} - ${case_.id}`; + if (!case_) return `${util.emojis.error} ${id} - no case found.`; + return `${util.emojis.success} ${id} - ${case_.id}`; }); client.emit('massEvidence', message.member!, message.guild, evidence, lines); -- cgit