diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-06 20:10:44 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-06 20:10:44 -0500 |
commit | db68c02e9d84322f729c17afd9d293d449238ca4 (patch) | |
tree | 9b8e8cee7c27adfad916565c07c0bc00cfa023dc /src/lib/common/util | |
parent | 0f0278b02fa24b71e66a0548c0dafcf8bff36784 (diff) | |
download | tanzanite-db68c02e9d84322f729c17afd9d293d449238ca4.tar.gz tanzanite-db68c02e9d84322f729c17afd9d293d449238ca4.tar.bz2 tanzanite-db68c02e9d84322f729c17afd9d293d449238ca4.zip |
add a silent option to moderation methods
Diffstat (limited to 'src/lib/common/util')
-rw-r--r-- | src/lib/common/util/Moderation.ts | 8 |
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; } /** |