Deprecated
API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { isGuildInteraction } from "https://deno.land/x/discord_api_types@0.37.26/utils/v8.ts";
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