Skip to main content
Module

x/discord_api_types/v10.ts>Utils.isMessageComponentInteraction

Up to date Discord API Typings, versioned by the API version
Go to Latest
function Utils.isMessageComponentInteraction
import { Utils } from "https://deno.land/x/discord_api_types@0.37.11/v10.ts";
const { isMessageComponentInteraction } = Utils;

A type-guard check for message component interactions

Parameters

interaction: APIInteraction

The interaction to check against

Returns

A boolean that indicates if the interaction is a message component