Skip to main content
Module

x/discord_api_types/utils/v9.ts>isDMInteraction

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

A type-guard check for DM interactions

Parameters

interaction: APIInteraction

The interaction to check against

Returns

interaction is APIDMInteraction

A boolean that indicates if the interaction was received in a DM channel