Skip to main content
Module

x/denocordts/deps.ts>APIBaseInteraction

An Object Oriented Discord API wrapper for Deno.
Latest
interface APIBaseInteraction
Re-export
import { type APIBaseInteraction } from "https://deno.land/x/denocordts@1.2.0/deps.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