aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/badwords.ts9
-rw-r--r--src/lib/common/AutoMod.ts2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/badwords.ts b/src/lib/badwords.ts
index 06b5dee..339aeaf 100644
--- a/src/lib/badwords.ts
+++ b/src/lib/badwords.ts
@@ -1,4 +1,4 @@
-import { Severity, type BadWords } from "./common/AutoMod.js";
+import { type BadWords } from "./common/AutoMod.js";
export default {
/* -------------------------------------------------------------------------- */
@@ -606,3 +606,10 @@ export default {
},
],
} as BadWords;
+
+const enum Severity {
+ DELETE,
+ WARN,
+ TEMP_MUTE,
+ PERM_MUTE,
+}
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index 8d94dab..24feae0 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -378,7 +378,7 @@ export interface BadWordDetails {
/**
* The severity of the word
*/
- severity: Severity;
+ severity: Severity | 1 | 2 | 3;
/**
* Whether or not to ignore spaces when checking for the word