diff options
Diffstat (limited to 'src/commands/moderation/modlog.ts')
-rw-r--r-- | src/commands/moderation/modlog.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/moderation/modlog.ts b/src/commands/moderation/modlog.ts index 84bb5b5..04264b8 100644 --- a/src/commands/moderation/modlog.ts +++ b/src/commands/moderation/modlog.ts @@ -42,6 +42,7 @@ export default class ModlogCommand extends BushCommand { `**Moderator**: <@!${log.moderator}> (${log.moderator})` ]; if (log.duration) modLog.push(`**Duration**: ${util.humanizeDuration(log.duration)}`); + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing modLog.push(`**Reason**: ${log.reason || 'No Reason Specified.'}`); if (log.evidence) modLog.push(`**Evidence:** ${log.evidence}`); return modLog.join(`\n`); @@ -55,7 +56,7 @@ export default class ModlogCommand extends BushCommand { if (foundUser) { const logs = await ModLog.findAll({ where: { - guild: message.guild.id, + guild: message.guild!.id, user: foundUser.id }, order: [['createdAt', 'ASC']] |