harmony/src/utils/interactions.ts

10 lines
334 B
TypeScript
Raw Permalink Normal View History

2021-04-23 05:37:55 +00:00
import { InteractionType } from '../../mod.ts'
import { Interaction } from '../structures/interactions.ts'
import { SlashCommandInteraction } from '../structures/slash.ts'
export function isSlashCommandInteraction(
d: Interaction
): d is SlashCommandInteraction {
return d.type === InteractionType.APPLICATION_COMMAND
}