10 lines
334 B
TypeScript
10 lines
334 B
TypeScript
|
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
|
||
|
}
|