diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-06 11:30:16 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-06 11:30:16 -0400 |
commit | b2ea3e7f142d47d19819893eb1c5fe9e8a31f87c (patch) | |
tree | c69b6a93c37c81c7b305cf95713b8c3cbf0a9d22 /src/lib/extensions | |
parent | e3c116e0f4b741032fe777936fdf5d80f0b011e6 (diff) | |
download | tanzanite-b2ea3e7f142d47d19819893eb1c5fe9e8a31f87c.tar.gz tanzanite-b2ea3e7f142d47d19819893eb1c5fe9e8a31f87c.tar.bz2 tanzanite-b2ea3e7f142d47d19819893eb1c5fe9e8a31f87c.zip |
change channel overrides to not use superusers
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 91d5eb6..4028517 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -1169,7 +1169,7 @@ export class BushClientUtil extends ClientUtil { if (!getCaseNumber) return { log: saveResult, caseNum: null }; - const caseNum = (await ModLog.findAll({ where: { type: options.type, user: user, guild: guild } }))?.length; + const caseNum = (await ModLog.findAll({ where: { type: options.type, user: user, guild: guild, hidden: false } }))?.length; return { log: saveResult, caseNum }; } |