diff options
Diffstat (limited to 'src/commands/utilities/price.ts')
-rw-r--r-- | src/commands/utilities/price.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts index 921784f..0bdad27 100644 --- a/src/commands/utilities/price.ts +++ b/src/commands/utilities/price.ts @@ -1,4 +1,4 @@ -import { MessageEmbed } from 'discord.js'; +import { CommandInteraction, MessageEmbed } from 'discord.js'; import Fuse from 'fuse.js'; import fetch from 'node-fetch'; import { BushCommand, BushMessage } from '../../lib'; @@ -98,6 +98,7 @@ export default class PriceCommand extends BushCommand { } public override async exec(message: BushMessage, { item, strict }: { item: string; strict: boolean }): Promise<unknown> { + if (message.util.isSlash) await (message.interaction as CommandInteraction).deferReply(); const errors = new Array<string>(); const [bazaar, currentLowestBIN, averageLowestBIN, auctionAverages] = ( |