diff options
Diffstat (limited to 'src/commands/moulberry-bush/report.ts')
-rw-r--r-- | src/commands/moulberry-bush/report.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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) => { |