Skip to main content
Module

x/discord_api_types/v8.ts>APIBaseInteraction

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIBaseInteraction
Re-export
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type APIBaseInteraction } from "https://deno.land/x/discord_api_types@0.37.11/v8.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

locale: LocaleString

The selected language of the invoking user

optional
guild_locale: LocaleString

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