Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/discord_api_types/v10.ts>Utils.isGuildInteraction

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

A type-guard check for guild interactions

Parameters

interaction: APIInteraction

The interaction to check against

Returns

interaction is APIGuildInteraction

A boolean that indicates if the interaction was received in a guild