diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-23 18:20:35 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-23 18:20:35 -0400 |
commit | e1c9873287b1bdc24a07982b61652894423efa51 (patch) | |
tree | e8a551c2caa03f285e882e6b2519cbe52ac3376e /src/commands/utilities/price.ts | |
parent | 8200a4427bb5c4093e7d4f1b30a3fdd7ee3380c1 (diff) | |
download | tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.gz tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.bz2 tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.zip |
use isSlashMessage
Diffstat (limited to 'src/commands/utilities/price.ts')
-rw-r--r-- | src/commands/utilities/price.ts | 4 |
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 |