aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/checks/fatal.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors/checks/fatal.ts')
-rw-r--r--src/inhibitors/checks/fatal.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inhibitors/checks/fatal.ts b/src/inhibitors/checks/fatal.ts
index 4364d48..b585bd8 100644
--- a/src/inhibitors/checks/fatal.ts
+++ b/src/inhibitors/checks/fatal.ts
@@ -1,11 +1,11 @@
-import { BotInhibitor, type SlashMessage } from '#lib';
+import { BotInhibitor, InhibitorReason, InhibitorType, type SlashMessage } from '#lib';
import { type Message } from 'discord.js';
export default class FatalInhibitor extends BotInhibitor {
public constructor() {
- super('fatal', {
- reason: 'fatal',
- type: 'all',
+ super(InhibitorReason.Fatal, {
+ reason: InhibitorReason.Fatal,
+ type: InhibitorType.All,
priority: 100
});
}
@@ -16,7 +16,7 @@ export default class FatalInhibitor extends BotInhibitor {
for (const property in globalCache) {
if (!globalCache[property as keyof typeof globalCache]) {
void this.client.console.verbose(
- 'fatal',
+ InhibitorReason.Fatal,
`Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild?.name}>>.`
);
return true;