aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/price.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities/price.ts')
-rw-r--r--src/commands/utilities/price.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts
index 4d21c02..059533b 100644
--- a/src/commands/utilities/price.ts
+++ b/src/commands/utilities/price.ts
@@ -1,5 +1,5 @@
import { BushCommand, BushMessage } from '@lib';
-import { CommandInteraction, MessageEmbed } from 'discord.js';
+import { MessageEmbed } from 'discord.js';
import Fuse from 'fuse.js';
import got from 'got';
@@ -95,7 +95,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();
+ if (message.util.isSlashMessage(message)) await message.interaction.deferReply();
const errors = new Array<string>();
//prettier-ignore