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/wolframAlpha.ts | |
parent | 8200a4427bb5c4093e7d4f1b30a3fdd7ee3380c1 (diff) | |
download | tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.gz tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.bz2 tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.zip |
use isSlashMessage
Diffstat (limited to 'src/commands/utilities/wolframAlpha.ts')
-rw-r--r-- | src/commands/utilities/wolframAlpha.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/utilities/wolframAlpha.ts b/src/commands/utilities/wolframAlpha.ts index 049dd60..426a0c7 100644 --- a/src/commands/utilities/wolframAlpha.ts +++ b/src/commands/utilities/wolframAlpha.ts @@ -1,5 +1,5 @@ import { AllowedMentions, BushCommand, BushMessage, BushSlashMessage } from '@lib'; -import { CommandInteraction, MessageEmbed, MessageOptions } from 'discord.js'; +import { MessageEmbed, MessageOptions } from 'discord.js'; import WolframAlphaAPI from 'wolfram-alpha-api'; export default class WolframAlphaCommand extends BushCommand { @@ -48,7 +48,7 @@ export default class WolframAlphaCommand extends BushCommand { message: BushMessage | BushSlashMessage, args: { expression: string; image: boolean } ): Promise<unknown> { - if (message.util.isSlash) await (message.interaction as CommandInteraction).deferReply(); + if (message.util.isSlashMessage(message)) await message.interaction.deferReply(); args.image && void message.util.reply({ content: `${util.emojis.loading} Loading...`, embeds: [] }); const waApi = WolframAlphaAPI(client.config.credentials.wolframAlphaAppId); |