From 1182f63498c856111762e2766d6cdddf063f2a97 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 29 Dec 2021 22:12:48 -0500 Subject: misc improvements --- src/lib/common/util/Moderation.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/lib/common') diff --git a/src/lib/common/util/Moderation.ts b/src/lib/common/util/Moderation.ts index 3cabb77..c06ad25 100644 --- a/src/lib/common/util/Moderation.ts +++ b/src/lib/common/util/Moderation.ts @@ -26,7 +26,17 @@ export class Moderation { public static async permissionCheck( moderator: BushGuildMember, victim: BushGuildMember, - type: 'mute' | 'unmute' | 'warn' | 'kick' | 'ban' | 'unban' | 'add a punishment role to' | 'remove a punishment role from', + type: + | 'mute' + | 'unmute' + | 'warn' + | 'kick' + | 'ban' + | 'unban' + | 'add a punishment role to' + | 'remove a punishment role from' + | 'block' + | 'unblock', checkModerator = true, force = false ): Promise { @@ -262,7 +272,7 @@ export interface CreatePunishmentEntryOptions { modlog: string; /** - * The role id if the punishment is a role punishment. + * Extra information for the punishment. The role for role punishments and the channel for blocks. */ extraInfo?: Snowflake; } @@ -287,7 +297,7 @@ export interface RemovePunishmentEntryOptions { guild: BushGuildResolvable; /** - * The role id if the punishment is a role punishment. + * Extra information for the punishment. The role for role punishments and the channel for blocks. */ extraInfo?: Snowflake; } -- cgit