Skip to main content
Module

x/discordeno/mod.ts>DiscordInteraction

Discord API library for Deno
Latest
interface DiscordInteraction
Re-export
import { type DiscordInteraction } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Properties

id: string

Id of the interaction

application_id: string

Id of the application this interaction is for

type: InteractionTypes

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

optional
data: DiscordInteractionData

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)