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

x/denocordts/src/types/mod.ts>Utils.isGuildInteraction

An Object Oriented Discord API wrapper for Deno.
Latest
function Utils.isGuildInteraction
import { Utils } from "https://deno.land/x/denocordts@1.2.0/src/types/mod.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