Skip to main content
Module

x/discordeno/mod.ts>DiscordInteraction

Discord API library for Deno
Extremely Popular
Go to Latest
interface DiscordInteraction
Re-export
import { type DiscordInteraction } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.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