aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/price.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 18:06:58 +0000
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 18:06:58 +0000
commit3f97bce09b7f0799fe9b40efa6ca85a07b009ad5 (patch)
tree11e554adf49fe37e74bcc69d7a07b140693210c0 /src/commands/utilities/price.ts
parent333b521d381385786d70bbd54cf2a9ba54b6a6f9 (diff)
downloadtanzanite-3f97bce09b7f0799fe9b40efa6ca85a07b009ad5.tar.gz
tanzanite-3f97bce09b7f0799fe9b40efa6ca85a07b009ad5.tar.bz2
tanzanite-3f97bce09b7f0799fe9b40efa6ca85a07b009ad5.zip
fix(PriceCommand): inconsistant formatting
Diffstat (limited to 'src/commands/utilities/price.ts')
-rw-r--r--src/commands/utilities/price.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts
index ffc121c..d9471d8 100644
--- a/src/commands/utilities/price.ts
+++ b/src/commands/utilities/price.ts
@@ -15,7 +15,7 @@ export default class PriceCommand extends BushCommand {
aliases: ['price'],
category: 'utilities',
description: 'Finds the price information of an item.',
- usage: ['price <item id>'],
+ usage: ['price <item> [--strict]'],
examples: ['price ASPECT_OF_THE_END'],
args: [
{
@@ -85,10 +85,10 @@ export default class PriceCommand extends BushCommand {
}
// if its a bazaar item then it there should not be any ah data
- if (bazaar['products']?.[parsedItem]) {
+ if (bazaar.products?.[parsedItem]) {
const bazaarPriceEmbed = new Embed()
.setColor(errors?.length ? util.colors.warn : util.colors.success)
- .setTitle(`Bazaar Information for **${parsedItem}**`)
+ .setTitle(`Bazaar Information for ${util.format.input(parsedItem)}**`)
.addField({ name: 'Sell Price', value: addBazaarInformation('sellPrice', 2, true) })
.addField({ name: 'Buy Price', value: addBazaarInformation('buyPrice', 2, true) })
.addField({
@@ -104,13 +104,13 @@ export default class PriceCommand extends BushCommand {
if (currentLowestBIN?.[parsedItem] || averageLowestBIN?.[parsedItem] || auctionAverages?.[parsedItem]) {
priceEmbed
.setColor(util.colors.success)
- .setTitle(`Price Information for \`${parsedItem}\``)
+ .setTitle(`Price Information for ${util.format.input(parsedItem)}`)
.setFooter({ text: 'All information is based on the last 3 days.' });
} else {
const errorEmbed = new Embed();
errorEmbed
.setColor(util.colors.error)
- .setDescription(`${util.emojis.error} \`${parsedItem}\` is not a valid item id, or it has no auction data.`);
+ .setDescription(`${util.emojis.error} ${util.format.input(parsedItem)} is not a valid item id, or it has no auction data.`);
return await message.util.reply({ embeds: [errorEmbed] });
}