aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/AutoMod.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-30 16:55:37 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-30 16:55:37 -0500
commit83db032fb91996c926a5d007a9e5fa4abed65871 (patch)
tree28081718636b6c41aea89018504f3f7e4f837903 /src/lib/common/AutoMod.ts
parentf0a9f894575871d498447c5de2b5f0f826b117b7 (diff)
downloadtanzanite-83db032fb91996c926a5d007a9e5fa4abed65871.tar.gz
tanzanite-83db032fb91996c926a5d007a9e5fa4abed65871.tar.bz2
tanzanite-83db032fb91996c926a5d007a9e5fa4abed65871.zip
add timeout command and fix some other moderation commands
Diffstat (limited to 'src/lib/common/AutoMod.ts')
-rw-r--r--src/lib/common/AutoMod.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index cc1bbbd..d7da532 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -183,7 +183,7 @@ export class AutoMod {
case Severity.WARN: {
color = util.colors.yellow;
void this.message.delete().catch((e) => deleteError.bind(this, e));
- void this.message.member?.warn({
+ void this.message.member?.bushWarn({
moderator: this.message.guild!.me!,
reason: `[AutoMod] ${highestOffence.reason}`
});
@@ -193,7 +193,7 @@ export class AutoMod {
case Severity.TEMP_MUTE: {
color = util.colors.orange;
void this.message.delete().catch((e) => deleteError.bind(this, e));
- void this.message.member?.mute({
+ void this.message.member?.bushMute({
moderator: this.message.guild!.me!,
reason: `[AutoMod] ${highestOffence.reason}`,
duration: 900_000 // 15 minutes
@@ -204,7 +204,7 @@ export class AutoMod {
case Severity.PERM_MUTE: {
color = util.colors.red;
void this.message.delete().catch((e) => deleteError.bind(this, e));
- void this.message.member?.mute({
+ void this.message.member?.bushMute({
moderator: this.message.guild!.me!,
reason: `[AutoMod] ${highestOffence.reason}`,
duration: 0 // permanent