aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/util')
-rw-r--r--src/lib/common/util/Moderation.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/common/util/Moderation.ts b/src/lib/common/util/Moderation.ts
index 9757f25..c018852 100644
--- a/src/lib/common/util/Moderation.ts
+++ b/src/lib/common/util/Moderation.ts
@@ -114,7 +114,8 @@ export class Moderation {
duration: duration,
guild,
pseudo: options.pseudo ?? false,
- evidence: options.evidence
+ evidence: options.evidence,
+ hidden: options.hidden ?? false
});
const saveResult: ModLog | null = await modLogEntry.save().catch(async (e) => {
await util.handleError('createModLogEntry', e);
@@ -266,6 +267,11 @@ export interface CreateModLogEntryOptions {
* The evidence for the punishment.
*/
evidence?: string;
+
+ /**
+ * Makes the modlog entry hidden.
+ */
+ hidden?: boolean;
}
/**