From 2e539511a49ff993eded39751a2e768315ee4ff6 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 25 Aug 2021 18:27:29 -0400 Subject: some fixes --- src/commands/utilities/price.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commands/utilities') 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 { + if (message.util.isSlash) await (message.interaction as CommandInteraction).deferReply(); const errors = new Array(); const [bazaar, currentLowestBIN, averageLowestBIN, auctionAverages] = ( -- cgit