diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-03 23:45:16 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-03 23:45:16 -0500 |
commit | 3c56bbcf795725b65192409b3211d92c097f8c82 (patch) | |
tree | 472dafca0224e61aeaffcf59ea176c534b8c3930 /src/commands/moulberry-bush | |
parent | 2e02220de1d1de24375db11f22b4c6626c930a28 (diff) | |
download | tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.tar.gz tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.tar.bz2 tanzanite-3c56bbcf795725b65192409b3211d92c097f8c82.zip |
refactor: preemptively switch addField to addFields
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r-- | src/commands/moulberry-bush/report.ts | 6 | ||||
-rw-r--r-- | src/commands/moulberry-bush/rule.ts | 4 | ||||
-rw-r--r-- | src/commands/moulberry-bush/serverStatus.ts | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/moulberry-bush/report.ts b/src/commands/moulberry-bush/report.ts index fc78a7b..ed25df4 100644 --- a/src/commands/moulberry-bush/report.ts +++ b/src/commands/moulberry-bush/report.ts @@ -71,7 +71,7 @@ export default class ReportCommand extends BushCommand { .setTitle('New Report') .setColor(util.colors.red) .setDescription(evidence) - .addField({ + .addFields({ name: 'Reporter', value: [ `**Name:**${message.author.tag} <@${message.author.id}>`, @@ -81,7 +81,7 @@ export default class ReportCommand extends BushCommand { ].join('\n'), inline: true }) - .addField({ + .addFields({ name: 'Reported User', value: [ `**Name:**${member.user.tag} <@${member.user.id}>`, @@ -96,7 +96,7 @@ export default class ReportCommand extends BushCommand { if (fileName.endsWith('.png') || fileName.endsWith('.jpg') || fileName.endsWith('.gif') || fileName.endsWith('.webp')) { reportEmbed.setImage(message.attachments.first()!.url); } else { - reportEmbed.addField({ name: 'Attachment', value: message.attachments.first()!.url }); + reportEmbed.addFields({ name: 'Attachment', value: message.attachments.first()!.url }); } } await reportChannel.send({ embeds: [reportEmbed] }).then(async (ReportMessage) => { diff --git a/src/commands/moulberry-bush/rule.ts b/src/commands/moulberry-bush/rule.ts index 5eb2b98..913a4b6 100644 --- a/src/commands/moulberry-bush/rule.ts +++ b/src/commands/moulberry-bush/rule.ts @@ -108,10 +108,10 @@ export default class RuleCommand extends BushCommand { } if (rule) { if (rules[rule - 1]?.title && rules[rule - 1]?.description) - rulesEmbed.addField({ name: rules[rule - 1].title, value: rules[rule - 1].description }); + rulesEmbed.addFields({ name: rules[rule - 1].title, value: rules[rule - 1].description }); } else { for (let i = 0; i < rules.length; i++) { - if (rules[i]?.title && rules[i]?.description) rulesEmbed.addField({ name: rules[i].title, value: rules[i].description }); + if (rules[i]?.title && rules[i]?.description) rulesEmbed.addFields({ name: rules[i].title, value: rules[i].description }); } } await message.util.send({ diff --git a/src/commands/moulberry-bush/serverStatus.ts b/src/commands/moulberry-bush/serverStatus.ts index 35240f9..703dfc4 100644 --- a/src/commands/moulberry-bush/serverStatus.ts +++ b/src/commands/moulberry-bush/serverStatus.ts @@ -38,7 +38,7 @@ export default class ServerStatusCommand extends BushCommand { await message.util.edit({ embeds: [ msgEmbed - .addField({ name: 'Status', value: 'The server is online, all features related to prices will likely work.' }) + .addFields({ name: 'Status', value: 'The server is online, all features related to prices will likely work.' }) .setColor(util.colors.success) ] }); @@ -46,7 +46,7 @@ export default class ServerStatusCommand extends BushCommand { await message.util.edit({ embeds: [ msgEmbed - .addField({ + .addFields({ name: 'Status', value: "It appears Moulberry's server is offline, this means that everything related to prices will likely not work." |