diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-31 20:46:57 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-31 20:46:57 -0500 |
commit | 29c7bc6e323ac7537d474be5da1f182b4f90f119 (patch) | |
tree | 048945ac72e25e60651f6d375daf6e11539b60ac | |
parent | 58fefb24903e3cab5245bb7d4b967fdb5606a0c3 (diff) | |
download | tanzanite-29c7bc6e323ac7537d474be5da1f182b4f90f119.tar.gz tanzanite-29c7bc6e323ac7537d474be5da1f182b4f90f119.tar.bz2 tanzanite-29c7bc6e323ac7537d474be5da1f182b4f90f119.zip |
update badwords to use its own enum to advoid import jank
-rw-r--r-- | src/lib/badwords.ts | 9 | ||||
-rw-r--r-- | src/lib/common/AutoMod.ts | 2 |
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 |