From b44bbd48c72765e46b904a7aa9ce473ab2e35f98 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 13 Oct 2021 23:37:57 -0400 Subject: automod ban button evidence --- src/lib/common/moderation.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/common/moderation.ts') diff --git a/src/lib/common/moderation.ts b/src/lib/common/moderation.ts index 4af6ec2..c8779fc 100644 --- a/src/lib/common/moderation.ts +++ b/src/lib/common/moderation.ts @@ -70,6 +70,7 @@ export class Moderation { duration?: number; guild: BushGuildResolvable; pseudo?: boolean; + evidence?: string; }, getCaseNumber = false ): Promise<{ log: ModLog | null; caseNum: number | null }> { @@ -96,7 +97,8 @@ export class Moderation { reason: options.reason, duration: duration, guild, - pseudo: options.pseudo ?? false + pseudo: options.pseudo ?? false, + evidence: options.evidence }); const saveResult: ModLog | null = await modLogEntry.save().catch(async (e) => { await util.handleError('createModLogEntry', e); -- cgit