aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/modlog.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-03 21:12:19 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-03 21:12:19 -0500
commit821ed93ccf55e4f32f6f25f502bce1e5b161d356 (patch)
tree42d0547f589134a6e549975f2da199f943e7b3b9 /src/commands/moderation/modlog.ts
parent75eb731d077638472abc2f2423f6759a110bcda6 (diff)
downloadtanzanite-821ed93ccf55e4f32f6f25f502bce1e5b161d356.tar.gz
tanzanite-821ed93ccf55e4f32f6f25f502bce1e5b161d356.tar.bz2
tanzanite-821ed93ccf55e4f32f6f25f502bce1e5b161d356.zip
add bot info to user info command
Diffstat (limited to 'src/commands/moderation/modlog.ts')
-rw-r--r--src/commands/moderation/modlog.ts12
1 files changed, 6 insertions, 6 deletions
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`);
}