From 3c56bbcf795725b65192409b3211d92c097f8c82 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 3 Mar 2022 23:45:16 -0500 Subject: refactor: preemptively switch addField to addFields --- src/lib/common/AutoMod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/common/AutoMod.ts') 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() }) -- cgit