Skip to main content
Module

x/harmony/src/utils/interactions.ts

An easy to use Discord API Library for Deno.
Go to Latest
File
import { InteractionType, MessageComponentInteraction } from '../../mod.ts'import { Interaction } from '../structures/interactions.ts'import { ApplicationCommandInteraction } from '../structures/applicationCommand.ts'
export function isApplicationCommandInteraction( d: Interaction): d is ApplicationCommandInteraction { return d.type === InteractionType.APPLICATION_COMMAND}
export function isMessageComponentInteraction( d: Interaction): d is MessageComponentInteraction { return d.type === InteractionType.MESSAGE_COMPONENT}