Skip to main content
Module

x/harmony/deploy.ts>InteractionPayload

An easy to use Discord API Library for Deno.
Latest
interface InteractionPayload
Re-export
import { type InteractionPayload } from "https://deno.land/x/harmony@v2.9.0/deploy.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