aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 22:12:48 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 22:12:48 -0500
commit1182f63498c856111762e2766d6cdddf063f2a97 (patch)
tree1610dfa9f76d15fd5731a900b854d62d08438ddc /src/lib
parenta540b4083b7a5662ec49b7576b215fe5d3153358 (diff)
downloadtanzanite-1182f63498c856111762e2766d6cdddf063f2a97.tar.gz
tanzanite-1182f63498c856111762e2766d6cdddf063f2a97.tar.bz2
tanzanite-1182f63498c856111762e2766d6cdddf063f2a97.zip
misc improvements
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/common/util/Moderation.ts16
-rw-r--r--src/lib/utils/BushConstants.ts2
2 files changed, 14 insertions, 4 deletions
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<true | string> {
@@ -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;
}
diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts
index 3327e8f..4f5fb87 100644
--- a/src/lib/utils/BushConstants.ts
+++ b/src/lib/utils/BushConstants.ts
@@ -169,7 +169,7 @@ export class BushConstants {
USE_EXTERNAL_STICKERS: { name: 'Use External Stickers', important: false },
SEND_MESSAGES_IN_THREADS: { name: 'Send Messages In Threads', important: false },
START_EMBEDDED_ACTIVITIES: { name: 'Start Activities', important: false },
- MODERATE_MEMBERS: { name: 'Moderate Members', important: true },
+ MODERATE_MEMBERS: { name: 'Timeout Members', important: true },
MANAGE_EVENTS: { name: 'Manage Events', important: true }
},