aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 18:27:29 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 18:27:29 -0400
commit2e539511a49ff993eded39751a2e768315ee4ff6 (patch)
tree32f0f1f512e87f2c0a9e4aa9db60fe2a349b1a71 /src/commands/utilities
parent1d9691083645fac0389ec98adfa66c99f75d58ad (diff)
downloadtanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.tar.gz
tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.tar.bz2
tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.zip
some fixes
Diffstat (limited to 'src/commands/utilities')
-rw-r--r--src/commands/utilities/price.ts3
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] = (