aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-25 17:08:07 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-25 17:08:07 -0400
commit1fa290f6b10584b0c4ac32cc3637cb9c0e405e41 (patch)
tree046aa21a83b60e7436e71d22e507e50876afd261
parent579d17a98b815952aa10e413282f80d953a607eb (diff)
downloadtanzanite-1fa290f6b10584b0c4ac32cc3637cb9c0e405e41.tar.gz
tanzanite-1fa290f6b10584b0c4ac32cc3637cb9c0e405e41.tar.bz2
tanzanite-1fa290f6b10584b0c4ac32cc3637cb9c0e405e41.zip
fix(massEvidence): use id not index
-rw-r--r--src/commands/moderation/massEvidence.ts6
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);