diff options
Diffstat (limited to 'src/commands/utilities')
-rw-r--r-- | src/commands/utilities/price.ts | 6 | ||||
-rw-r--r-- | src/commands/utilities/viewRaw.ts | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts index d931dd2..16dd327 100644 --- a/src/commands/utilities/price.ts +++ b/src/commands/utilities/price.ts @@ -56,7 +56,7 @@ export default class PriceCommand extends BushCommand { if (bazaar?.success === false) errors.push('bazaar'); if (errors?.length) { - priceEmbed.setFooter(`Could not fetch data from ${util.oxford(errors, 'and', '')}`); + priceEmbed.setFooter({ text: `Could not fetch data from ${util.oxford(errors, 'and', '')}` }); } // create a set from all the item names so that there are no duplicates for the fuzzy search @@ -69,7 +69,7 @@ export default class PriceCommand extends BushCommand { // fuzzy search if (!strict) { - parsedItem = new Fuse(Array.from(itemNames), { + parsedItem = new Fuse([...itemNames], { isCaseSensitive: false, findAllMatches: true, threshold: 0.7, @@ -98,7 +98,7 @@ export default class PriceCommand extends BushCommand { priceEmbed .setColor(util.colors.success) .setTitle(`Price Information for \`${parsedItem}\``) - .setFooter('All information is based on the last 3 days.'); + .setFooter({ text: 'All information is based on the last 3 days.' }); } else { const errorEmbed = new MessageEmbed(); errorEmbed diff --git a/src/commands/utilities/viewRaw.ts b/src/commands/utilities/viewRaw.ts index eeec4d9..b524b3c 100644 --- a/src/commands/utilities/viewRaw.ts +++ b/src/commands/utilities/viewRaw.ts @@ -1,11 +1,11 @@ import { - ArgType, BushCommand, - BushNewsChannel, - BushTextChannel, - OptionalArgType, + type ArgType, type BushMessage, - type BushSlashMessage + type BushNewsChannel, + type BushSlashMessage, + type BushTextChannel, + type OptionalArgType } from '#lib'; import { Message, MessageEmbed, type Snowflake } from 'discord.js'; @@ -96,7 +96,7 @@ export default class ViewRawCommand extends BushCommand { : message.content || '[No Content]'; const lang = options.json ? 'json' : options.js ? 'js' : undefined; return new MessageEmbed() - .setFooter(message.author.tag, message.author.avatarURL({ dynamic: true }) ?? undefined) + .setFooter({ text: message.author.tag, iconURL: message.author.avatarURL({ dynamic: true }) ?? undefined }) .setTimestamp(message.createdTimestamp) .setColor(message.member?.roles?.color?.color ?? util.colors.default) .setTitle('Raw Message Information') |