diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-27 16:57:39 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-27 16:57:39 -0400 |
commit | 877537043dd2a8ba16037f061716d9c6f7a5764a (patch) | |
tree | 9e9fd2c69b415d2f548e97d0d6abbf3bc8a314a8 /src/commands/moderation/evidence.ts | |
parent | a1ab06dcfccef90192b90910aecdddbc505eca00 (diff) | |
download | tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.gz tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.bz2 tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.zip |
change printWidth to 130 and update dependecies
Diffstat (limited to 'src/commands/moderation/evidence.ts')
-rw-r--r-- | src/commands/moderation/evidence.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/commands/moderation/evidence.ts b/src/commands/moderation/evidence.ts index 0a297de..8dc65f3 100644 --- a/src/commands/moderation/evidence.ts +++ b/src/commands/moderation/evidence.ts @@ -63,17 +63,12 @@ export default class EvidenceCommand extends BushCommand { ) { const entry = await ModLog.findByPk(caseID); if (!entry || entry.pseudo) return message.util.send(`${util.emojis.error} Invalid modlog entry.`); - if (entry.guild !== message.guild!.id) - return message.util.reply(`${util.emojis.error} This modlog is from another server.`); + if (entry.guild !== message.guild!.id) return message.util.reply(`${util.emojis.error} This modlog is from another server.`); if (evidence && (message as BushMessage).attachments?.size) return message.util.reply(`${util.emojis.error} Please either attach an image or a reason not both.`); - const _evidence = evidence - ? evidence - : !message.util.isSlash - ? (message as BushMessage).attachments.first()?.url - : undefined; + const _evidence = evidence ? evidence : !message.util.isSlash ? (message as BushMessage).attachments.first()?.url : undefined; if (!_evidence) return message.util.reply(`${util.emojis.error} You must provide evidence for this modlog.`); const oldEntry = entry.evidence; |