diff options
Diffstat (limited to 'src/inhibitors/command/superUser.ts')
-rw-r--r-- | src/inhibitors/command/superUser.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inhibitors/command/superUser.ts b/src/inhibitors/command/superUser.ts index 2e44b67..69e95a2 100644 --- a/src/inhibitors/command/superUser.ts +++ b/src/inhibitors/command/superUser.ts @@ -12,8 +12,8 @@ export default class SuperUserInhibitor extends BushInhibitor { public async exec(message: CommandMessage | SlashMessage, command: BushCommand): Promise<boolean> { if (command.superUserOnly) { - if (!client.isSuperUser(message.author)) { - void client.console.verbose( + if (!this.client.isSuperUser(message.author)) { + void this.client.console.verbose( 'superUser', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild?.name}>>.` ); |