Skip to main content

DiscordInteraction

@discordeno/bot


Documentation / @discordeno/bot / DiscordInteraction

Interface: DiscordInteraction

Defined in: packages/types/dist/types/discord.d.ts:1767

Properties

app_permissions

app_permissions: string

Defined in: packages/types/dist/types/discord.d.ts:1804

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


application_id

application_id: string

Defined in: packages/types/dist/types/discord.d.ts:1771

Id of the application this interaction is for


authorizing_integration_owners

authorizing_integration_owners: Partial<Record<DiscordApplicationIntegrationType, string>>

Defined in: packages/types/dist/types/discord.d.ts:1808

Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.


channel

channel: Partial<DiscordChannel>

Defined in: packages/types/dist/types/discord.d.ts:1779

The channel it was sent from


channel_id?

optional channel_id: string

Defined in: packages/types/dist/types/discord.d.ts:1786

The ID of channel it was sent from

Remarks

It is recommended that you begin using this channel field to identify the source channel of the interaction as they may deprecate the existing channel_id field in the future.


context?

optional context: DiscordInteractionContextType

Defined in: packages/types/dist/types/discord.d.ts:1810

Context where the interaction was triggered from


data?

optional data: DiscordInteractionData

Defined in: packages/types/dist/types/discord.d.ts:1798

the command data payload


entitlements

entitlements: DiscordEntitlement[]

Defined in: packages/types/dist/types/discord.d.ts:1806

For monetized apps, any entitlements for the invoking user, representing access to premium SKUs


guild?

optional guild: Partial<DiscordGuild>

Defined in: packages/types/dist/types/discord.d.ts:1775

Guild that the interaction was sent from


guild_id?

optional guild_id: string

Defined in: packages/types/dist/types/discord.d.ts:1777

The guild it was sent from


guild_locale?

optional guild_locale: string

Defined in: packages/types/dist/types/discord.d.ts:1802

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


id

id: string

Defined in: packages/types/dist/types/discord.d.ts:1769

Id of the interaction


locale?

optional locale: string

Defined in: packages/types/dist/types/discord.d.ts:1800

The selected language of the invoking user


member?

optional member: DiscordInteractionMember

Defined in: packages/types/dist/types/discord.d.ts:1788

Guild member data for the invoking user, including permissions


message?

optional message: DiscordMessage

Defined in: packages/types/dist/types/discord.d.ts:1796

For the message the button was attached to


token

token: string

Defined in: packages/types/dist/types/discord.d.ts:1792

A continuation token for responding to the interaction


type

type: InteractionTypes

Defined in: packages/types/dist/types/discord.d.ts:1773

The type of interaction


user?

optional user: DiscordUser

Defined in: packages/types/dist/types/discord.d.ts:1790

User object for the invoking user, if invoked in a DM


version

version: 1

Defined in: packages/types/dist/types/discord.d.ts:1794

Read-only property, always 1