Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface APIBaseInteraction<Type, Data>

Type Parameters

Hierarchy

  • APIBaseInteraction

Index

Properties

application_id: string

ID of the application this interaction is for

channel_id?: string

The channel it was sent from

data?: Data

The command data payload

guild_id?: string

The guild it was sent from

guild_locale?: "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi"

The guild's preferred locale, if invoked in a guild

id: string

ID of the interaction

locale: "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi"

The selected language of the invoking user

Guild member data for the invoking user, including permissions

This is only sent when an interaction is invoked in a guild

message?: APIMessage

For components, the message they were attached to

token: string

A continuation token for responding to the interaction

type: Type

The type of interaction

user?: APIUser

User object for the invoking user, if invoked in a DM

version: 1

Read-only property, always 1

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:16 AM