aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/moderation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/moderation.ts')
-rw-r--r--src/lib/common/moderation.ts4
1 files changed, 3 insertions, 1 deletions
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);