aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors')
-rw-r--r--src/inhibitors/blacklist/channelGlobalBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/channelGuildBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/guildBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/userGlobalBlacklist.ts2
-rw-r--r--src/inhibitors/blacklist/userGuildBlacklist.ts2
-rw-r--r--src/inhibitors/commands/globalDisabledCommand.ts2
-rw-r--r--src/inhibitors/commands/guildDisabledCommand.ts2
-rw-r--r--src/inhibitors/noCache.ts2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/inhibitors/blacklist/channelGlobalBlacklist.ts b/src/inhibitors/blacklist/channelGlobalBlacklist.ts
index 28a2c5e..7a1d27d 100644
--- a/src/inhibitors/blacklist/channelGlobalBlacklist.ts
+++ b/src/inhibitors/blacklist/channelGlobalBlacklist.ts
@@ -9,7 +9,7 @@ export default class UserGlobalBlacklistInhibitor extends BushInhibitor {
});
}
- public exec(message: BushMessage | BushSlashMessage): boolean {
+ public override exec(message: BushMessage | BushSlashMessage): boolean {
if (!message.author) return false;
if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
return false;
diff --git a/src/inhibitors/blacklist/channelGuildBlacklist.ts b/src/inhibitors/blacklist/channelGuildBlacklist.ts
index 7fa4ccf..be338fe 100644
--- a/src/inhibitors/blacklist/channelGuildBlacklist.ts
+++ b/src/inhibitors/blacklist/channelGuildBlacklist.ts
@@ -9,7 +9,7 @@ export default class ChannelGuildBlacklistInhibitor extends BushInhibitor {
});
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
if (!message.author || !message.guild) return false;
if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
return false;
diff --git a/src/inhibitors/blacklist/guildBlacklist.ts b/src/inhibitors/blacklist/guildBlacklist.ts
index 5a2123c..afaae9d 100644
--- a/src/inhibitors/blacklist/guildBlacklist.ts
+++ b/src/inhibitors/blacklist/guildBlacklist.ts
@@ -9,7 +9,7 @@ export default class GuildBlacklistInhibitor extends BushInhibitor {
});
}
- public exec(message: BushMessage | BushSlashMessage): boolean {
+ public override exec(message: BushMessage | BushSlashMessage): boolean {
if (!message.guild) return false;
if (
message.author &&
diff --git a/src/inhibitors/blacklist/userGlobalBlacklist.ts b/src/inhibitors/blacklist/userGlobalBlacklist.ts
index d8964a4..1173d87 100644
--- a/src/inhibitors/blacklist/userGlobalBlacklist.ts
+++ b/src/inhibitors/blacklist/userGlobalBlacklist.ts
@@ -9,7 +9,7 @@ export default class UserGlobalBlacklistInhibitor extends BushInhibitor {
});
}
- public exec(message: BushMessage | BushSlashMessage): boolean {
+ public override exec(message: BushMessage | BushSlashMessage): boolean {
if (!message.author) return false;
if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
return false;
diff --git a/src/inhibitors/blacklist/userGuildBlacklist.ts b/src/inhibitors/blacklist/userGuildBlacklist.ts
index 0bc6749..95ba17a 100644
--- a/src/inhibitors/blacklist/userGuildBlacklist.ts
+++ b/src/inhibitors/blacklist/userGuildBlacklist.ts
@@ -9,7 +9,7 @@ export default class UserGuildBlacklistInhibitor extends BushInhibitor {
});
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
if (!message.author || !message.guild) return false;
if (client.isOwner(message.author) || client.isSuperUser(message.author) || client.user.id === message.author.id)
return false;
diff --git a/src/inhibitors/commands/globalDisabledCommand.ts b/src/inhibitors/commands/globalDisabledCommand.ts
index 2954393..4c85c3b 100644
--- a/src/inhibitors/commands/globalDisabledCommand.ts
+++ b/src/inhibitors/commands/globalDisabledCommand.ts
@@ -9,7 +9,7 @@ export default class DisabledGuildCommandInhibitor extends BushInhibitor {
});
}
- public async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> {
+ public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> {
if (message.author.isOwner()) return false;
if (client.cache.global.disabledCommands?.includes(command?.id)) {
client.console.debug(`disabledGlobalCommand blocked message.`);
diff --git a/src/inhibitors/commands/guildDisabledCommand.ts b/src/inhibitors/commands/guildDisabledCommand.ts
index d16bff7..b21e1ef 100644
--- a/src/inhibitors/commands/guildDisabledCommand.ts
+++ b/src/inhibitors/commands/guildDisabledCommand.ts
@@ -9,7 +9,7 @@ export default class DisabledGuildCommandInhibitor extends BushInhibitor {
});
}
- public async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> {
+ public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> {
if (!message.guild || !message.guild) return;
if (message.author.isOwner() || message.author.isSuperUser()) return false; // super users bypass guild disabled commands
diff --git a/src/inhibitors/noCache.ts b/src/inhibitors/noCache.ts
index d461076..6bb2001 100644
--- a/src/inhibitors/noCache.ts
+++ b/src/inhibitors/noCache.ts
@@ -9,7 +9,7 @@ export default class NoCacheInhibitor extends BushInhibitor {
});
}
- public async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
+ public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> {
if (client.isOwner(message.author)) return false;
for (const property in client.cache.global) {
if (!client.cache.global[property]) {