Skip to main content
Module

x/discord_api_types/utils/v9.ts>isChatInputApplicationCommandInteraction

Up to date Discord API Typings, versioned by the API version
Go to Latest
function isChatInputApplicationCommandInteraction
import { isChatInputApplicationCommandInteraction } from "https://deno.land/x/discord_api_types@0.37.2/utils/v9.ts";

A type-guard check for chat input application commands.

Parameters

interaction: APIApplicationCommandInteraction

The interaction to check against

Returns

interaction is APIChatInputApplicationCommandInteraction

A boolean that indicates if the interaction is a chat input application command