Skip to main content
Module

x/discord_api_types/utils/mod.ts>isMessageComponentInteraction

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

A type-guard check for message component interactions

Parameters

interaction: APIInteraction

The interaction to check against

Returns

interaction is APIMessageComponentInteraction

A boolean that indicates if the interaction is a message component