aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-03 23:45:16 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-03-03 23:45:16 -0500
commit3c56bbcf795725b65192409b3211d92c097f8c82 (patch)
tree472dafca0224e61aeaffcf59ea176c534b8c3930 /src/lib/common
parent2e02220de1d1de24375db11f22b4c6626c930a28 (diff)
downloadtanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.tar.gz
tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.tar.bz2
tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.zip
refactor: preemptively switch addField to addFields
Diffstat (limited to 'src/lib/common')
-rw-r--r--src/lib/common/AutoMod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index 93d2f8f..db3e709 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -158,7 +158,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})`
)
- .addField({ name: 'Message Content', value: `${await util.codeblock(this.message.content, 1024)}` })
+ .addFields({ name: 'Message Content', value: `${await util.codeblock(this.message.content, 1024)}` })
.setColor(color)
.setTimestamp()
],
@@ -323,7 +323,7 @@ export class AutoMod {
this.message.channel.id
}> [Jump to context](${this.message.url})\n**Blacklisted Words:** ${offences.map((o) => `\`${o.match}\``).join(', ')}`
)
- .addField({ name: 'Message Content', value: `${await util.codeblock(this.message.content, 1024)}` })
+ .addFields({ name: 'Message Content', value: `${await util.codeblock(this.message.content, 1024)}` })
.setColor(color)
.setTimestamp()
.setAuthor({ name: this.message.author.tag, url: this.message.author.displayAvatarURL() })