aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-07 20:15:45 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-07 20:15:45 -0400
commit35d03eb54fe81c1d5c0359db67455b82f754e3f4 (patch)
tree5666ac26f6fee5e06c2c3a523fced614cb6723bf /src/lib/extensions/discord-akairo
parent198aeadfc73642498afcb1eb637e0de86ccc9308 (diff)
downloadtanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.tar.gz
tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.tar.bz2
tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.zip
add owner bypasses and prevent blacklisted users from having their dms logged
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts
index a1966e2..fbf3b5d 100644
--- a/src/lib/extensions/discord-akairo/BushClient.ts
+++ b/src/lib/extensions/discord-akairo/BushClient.ts
@@ -309,7 +309,7 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
this.commandHandler.useListenerHandler(this.listenerHandler);
this.commandHandler.useInhibitorHandler(this.inhibitorHandler);
this.commandHandler.ignorePermissions = this.config.owners;
- this.commandHandler.ignoreCooldown = this.config.owners.concat(this.cache.global.superUsers);
+ this.commandHandler.ignoreCooldown = [...new Set([...this.config.owners, ...this.cache.global.superUsers])];
this.listenerHandler.setEmitters({
client: this,
commandHandler: this.commandHandler,