Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/types/interactions.ts>InteractionPayload

An easy to use Discord API Library for Deno.
Go to Latest
interface InteractionPayload
import { type InteractionPayload } from "https://deno.land/x/harmony@v2.8.0/src/types/interactions.ts";

Properties

Type of the Interaction

optional
locale: string

User locale (not present on PING type)

optional
guild_locale: string

Guild locale (not present on PING type)

token: string

Token of the Interaction to respond

optional
member: InteractionMemberPayload

Member object of user who invoked

optional
user: UserPayload

User who initiated Interaction (only in DMs)

id: string

ID of the Interaction

Data sent with the interaction. Undefined only when Interaction is PING (http-only).*

optional
guild_id: string

ID of the Guild in which Interaction was invoked

optional
channel_id: string

ID of the Channel in which Interaction was invoked

application_id: string

Application ID of the Client who received interaction

optional
message: MessagePayload

Message ID if the Interaction was of type MESSAGE_COMPONENT