DiscordInteraction
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordInteraction
Interface: DiscordInteraction
Properties
app_permissions
app_permissions:
string
The computed permissions for a bot or app in the context of a specific interaction (including channel overwrites)
Defined in
packages/types/dist/types/discord.d.ts:1801
application_id
application_id:
string
Id of the application this interaction is for
Defined in
packages/types/dist/types/discord.d.ts:1768
authorizing_integration_owners
authorizing_integration_owners:
Partial
<Record
<DiscordApplicationIntegrationType
,string
>>
Mapping of installation contexts that the interaction was authorized for to related user or guild IDs.
Defined in
packages/types/dist/types/discord.d.ts:1805
channel
channel:
Partial
<DiscordChannel
>
The channel it was sent from
Defined in
packages/types/dist/types/discord.d.ts:1776
channel_id?
optional
channel_id:string
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.
Defined in
packages/types/dist/types/discord.d.ts:1783
context?
optional
context:DiscordInteractionContextType
Context where the interaction was triggered from
Defined in
packages/types/dist/types/discord.d.ts:1807
data?
optional
data:DiscordInteractionData
the command data payload
Defined in
packages/types/dist/types/discord.d.ts:1795
entitlements
entitlements:
DiscordEntitlement
[]
For monetized apps, any entitlements for the invoking user, representing access to premium SKUs
Defined in
packages/types/dist/types/discord.d.ts:1803
guild?
optional
guild:Partial
<DiscordGuild
>
Guild that the interaction was sent from
Defined in
packages/types/dist/types/discord.d.ts:1772
guild_id?
optional
guild_id:string
The guild it was sent from
Defined in
packages/types/dist/types/discord.d.ts:1774
guild_locale?
optional
guild_locale:string
The guild's preferred locale, if invoked in a guild
Defined in
packages/types/dist/types/discord.d.ts:1799
id
id:
string
Id of the interaction
Defined in
packages/types/dist/types/discord.d.ts:1766
locale?
optional
locale:string
The selected language of the invoking user
Defined in
packages/types/dist/types/discord.d.ts:1797
member?
optional
member:DiscordInteractionMember
Guild member data for the invoking user, including permissions
Defined in
packages/types/dist/types/discord.d.ts:1785
message?
optional
message:DiscordMessage
For the message the button was attached to
Defined in
packages/types/dist/types/discord.d.ts:1793
token
token:
string
A continuation token for responding to the interaction
Defined in
packages/types/dist/types/discord.d.ts:1789
type
type:
InteractionTypes
The type of interaction
Defined in
packages/types/dist/types/discord.d.ts:1770
user?
optional
user:DiscordUser
User object for the invoking user, if invoked in a DM
Defined in
packages/types/dist/types/discord.d.ts:1787
version
version:
1
Read-only property, always 1
Defined in
packages/types/dist/types/discord.d.ts:1791