aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-09 15:15:30 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-09 15:15:30 -0500
commit34073ca297847524bbaac854e2126d51225fbaaf (patch)
treedfa8f3011ec7b114d02fe1d7277882c972ee3d2d /src/lib
parent73ebab839201aaef9d76bfb19fa22c99a76a6b79 (diff)
downloadtanzanite-34073ca297847524bbaac854e2126d51225fbaaf.tar.gz
tanzanite-34073ca297847524bbaac854e2126d51225fbaaf.tar.bz2
tanzanite-34073ca297847524bbaac854e2126d51225fbaaf.zip
fix automod
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/common/AutoMod.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index 4b2b072..50f5d3e 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -253,9 +253,7 @@ export class AutoMod {
.setDescription(
`**User:** ${this.message.author} (${this.message.author.tag})\n**Sent From**: <#${
this.message.channel.id
- }> [Jump to context](${this.message.url})\n**Blacklisted Words:** ${Object.keys(offences)
- .map((key) => `\`${key}\``)
- .join(', ')}`
+ }> [Jump to context](${this.message.url})\n**Blacklisted Words:** ${offences.map((o) => `\`${o.match}\``).join(', ')}`
)
.addField('Message Content', `${await util.codeblock(this.message.content, 1024)}`)
.setColor(color)