Skip to main content
Module

x/discord_api_types/v10.ts>APIBaseInteraction

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIBaseInteraction
Re-export
import { type APIBaseInteraction } from "https://deno.land/x/discord_api_types@0.37.11/v10.ts";

Properties

ID of the interaction

application_id: Snowflake

ID of the application this interaction is for

type: Type

The type of interaction

optional
data: Data

The command data payload

optional
guild_id: Snowflake

The guild it was sent from

optional
channel_id: Snowflake

The channel it was sent from

Guild member data for the invoking user, including permissions

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

optional
user: APIUser

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

token: string

A continuation token for responding to the interaction

version: 1

Read-only property, always 1

optional
message: APIMessage

For components, the message they were attached to

optional
app_permissions: Permissions

Bitwise set of permissions the app or bot has within the channel the interaction was sent from

locale: LocaleString

The selected language of the invoking user

optional
guild_locale: LocaleString

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