aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-06 15:20:46 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-06 15:20:46 -0400
commit13306f17accea5d3653dd4b8670ba0d6ab69c7c5 (patch)
tree7075dcca19ed1164a166efac19c49311e93ffeee /src/lib/extensions/discord-akairo
parenta8386e756758f243b75e5df4886224d2bf9f241c (diff)
downloadtanzanite-13306f17accea5d3653dd4b8670ba0d6ab69c7c5.tar.gz
tanzanite-13306f17accea5d3653dd4b8670ba0d6ab69c7c5.tar.bz2
tanzanite-13306f17accea5d3653dd4b8670ba0d6ab69c7c5.zip
evidence command and more logging
Diffstat (limited to 'src/lib/extensions/discord-akairo')
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts4
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts
index 59c4df8..d488525 100644
--- a/src/lib/extensions/discord-akairo/BushClient.ts
+++ b/src/lib/extensions/discord-akairo/BushClient.ts
@@ -9,6 +9,7 @@ import {
MessageEditOptions,
MessageOptions,
MessagePayload,
+ Options,
PartialDMChannel,
ReplyMessageOptions,
Snowflake,
@@ -219,7 +220,8 @@ export class BushClient<Ready extends boolean = boolean> extends AkairoClient<Re
status: 'online'
},
http: { api: 'https://canary.discord.com/api' },
- allowedMentions: AllowedMentions.users() // No everyone or role mentions by default
+ allowedMentions: AllowedMentions.users(), // No everyone or role mentions by default
+ makeCache: Options.cacheWithLimits({})
});
this.token = config.token;
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts
index 4028517..38e1a06 100644
--- a/src/lib/extensions/discord-akairo/BushClientUtil.ts
+++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts
@@ -1169,7 +1169,8 @@ 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, hidden: false } }))?.length;
+ const caseNum = (await ModLog.findAll({ where: { type: options.type, user: user, guild: guild, hidden: 'false' } }))
+ ?.length;
return { log: saveResult, caseNum };
}