aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/message
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-05 13:45:44 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-05 13:45:44 -0400
commit81d69f983983ac71dbdbd5f13e2f2d8ddc35dced (patch)
tree6a06124a6696bb4036607d179972aa889b7b3769 /src/listeners/message
parent93e8fce44ec1dd3294b1c785d93d3f8b00ee4cef (diff)
downloadtanzanite-81d69f983983ac71dbdbd5f13e2f2d8ddc35dced.tar.gz
tanzanite-81d69f983983ac71dbdbd5f13e2f2d8ddc35dced.tar.bz2
tanzanite-81d69f983983ac71dbdbd5f13e2f2d8ddc35dced.zip
cleaning up and some imporvements to the stats command
Diffstat (limited to 'src/listeners/message')
-rw-r--r--src/listeners/message/automodCreate.ts2
-rw-r--r--src/listeners/message/verbose.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts
index 5993e7a..94b73c7 100644
--- a/src/listeners/message/automodCreate.ts
+++ b/src/listeners/message/automodCreate.ts
@@ -116,7 +116,7 @@ export default class AutomodMessageCreateListener extends BushListener {
message.url
})\n**Blacklisted Words:** ${util.surroundArray(Object.keys(offences), '`').join(', ')}`
)
- .addField('Message Content', `${await util.codeblock(message.content, 1024)}`)
+ .addField('Message Content', `${(await util.codeblock(message.content, 1024), true)}`)
.setColor(color)
.setTimestamp()
]
diff --git a/src/listeners/message/verbose.ts b/src/listeners/message/verbose.ts
index 517771e..b6085fb 100644
--- a/src/listeners/message/verbose.ts
+++ b/src/listeners/message/verbose.ts
@@ -11,7 +11,7 @@ export default class MessageVerboseListener extends BushListener {
}
public override exec(...[message]: BushClientEvents['messageCreate']): void {
- if (client.isReady()) {
+ if (client.customReady) {
if (message.channel?.type === 'DM') return;
void client.console.verbose(
'messageVerbose',