Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface DiscordInteraction
Re-export
import { type DiscordInteraction } from "https://deno.land/x/discordeno@17.2.0/plugins/cache/deps.ts";

Properties

id: string

Id of the interaction

application_id: string

Id of the application this interaction is for

The type of interaction

optional
guild_id: string

The guild it was sent from

optional
channel_id: string

The channel it was sent from

optional
member: DiscordInteractionMember

Guild member data for the invoking user, including permissions

optional
user: DiscordUser

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: DiscordMessage

For the message the button was attached to

the command data payload

optional
locale: string

The selected language of the invoking user

optional
guild_locale: string

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

app_permissions: string

The computed permissions for a bot or app in the context of a specific interaction (including channel overwrites)