From 22b3a8af49dc16bf5d8f9c3ce48b4770505ea33b Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 6 Jul 2022 20:28:04 +0200 Subject: remove array from add*(...) --- src/commands/moulberry-bush/report.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/moulberry-bush/report.ts') diff --git a/src/commands/moulberry-bush/report.ts b/src/commands/moulberry-bush/report.ts index 47e45f9..13ef2b6 100644 --- a/src/commands/moulberry-bush/report.ts +++ b/src/commands/moulberry-bush/report.ts @@ -79,7 +79,7 @@ export default class ReportCommand extends BushCommand { .setTitle('New Report') .setColor(colors.red) .setDescription(evidence) - .addFields([ + .addFields( { name: 'Reporter', value: stripIndent` @@ -97,14 +97,14 @@ export default class ReportCommand extends BushCommand { **Created:** ${timestampAndDelta(member.user.createdAt)}`, inline: true } - ]); + ); if (message.attachments.size > 0) { const fileName = message.attachments.first()!.name!.toLowerCase(); if (fileName.endsWith('.png') || fileName.endsWith('.jpg') || fileName.endsWith('.gif') || fileName.endsWith('.webp')) { reportEmbed.setImage(message.attachments.first()!.url); } else { - reportEmbed.addFields([{ name: 'Attachment', value: message.attachments.first()!.url }]); + reportEmbed.addFields({ name: 'Attachment', value: message.attachments.first()!.url }); } } await reportChannel.send({ embeds: [reportEmbed] }).then(async (ReportMessage) => { -- cgit