From 821ed93ccf55e4f32f6f25f502bce1e5b161d356 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:12:19 -0500 Subject: add bot info to user info command --- src/commands/moderation/modlog.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/commands/moderation/modlog.ts') diff --git a/src/commands/moderation/modlog.ts b/src/commands/moderation/modlog.ts index 6b8ae2d..443ffa3 100644 --- a/src/commands/moderation/modlog.ts +++ b/src/commands/moderation/modlog.ts @@ -81,12 +81,12 @@ export default class ModlogCommand extends BushCommand { public static generateModlogInfo(log: ModLog, showUser: boolean): string { const trim = (str: string): string => (str.endsWith('\n') ? str.substring(0, str.length - 1).trim() : str.trim()); - const modLog = [`**Case ID**: ${util.discord.escapeMarkdown(log.id)}`, `**Type**: ${log.type.toLowerCase()}`]; - if (showUser) modLog.push(`**User**: <@!${log.user}>`); - modLog.push(`**Moderator**: <@!${log.moderator}>`); - if (log.duration) modLog.push(`**Duration**: ${util.humanizeDuration(log.duration)}`); - modLog.push(`**Reason**: ${trim(log.reason ?? 'No Reason Specified.')}`); - modLog.push(`**Date**: ${util.timestamp(log.createdAt)}`); + const modLog = [`**Case ID:** ${util.discord.escapeMarkdown(log.id)}`, `**Type:** ${log.type.toLowerCase()}`]; + if (showUser) modLog.push(`**User:** <@!${log.user}>`); + modLog.push(`**Moderator:** <@!${log.moderator}>`); + if (log.duration) modLog.push(`**Duration:** ${util.humanizeDuration(log.duration)}`); + modLog.push(`**Reason:** ${trim(log.reason ?? 'No Reason Specified.')}`); + modLog.push(`**Date:** ${util.timestamp(log.createdAt)}`); if (log.evidence) modLog.push(`**Evidence:** ${trim(log.evidence)}`); return modLog.join(`\n`); } -- cgit