diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-25 17:08:07 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-25 17:08:07 -0400 |
commit | 1fa290f6b10584b0c4ac32cc3637cb9c0e405e41 (patch) | |
tree | 046aa21a83b60e7436e71d22e507e50876afd261 /src/commands | |
parent | 579d17a98b815952aa10e413282f80d953a607eb (diff) | |
download | tanzanite-1fa290f6b10584b0c4ac32cc3637cb9c0e405e41.tar.gz tanzanite-1fa290f6b10584b0c4ac32cc3637cb9c0e405e41.tar.bz2 tanzanite-1fa290f6b10584b0c4ac32cc3637cb9c0e405e41.zip |
fix(massEvidence): use id not index
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/moderation/massEvidence.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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); |