Class DiscordInteraction
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents an interaction that was invoked.
public sealed class DiscordInteraction : SnowflakeObject
- Inheritance
-
DiscordInteraction
- Inherited Members
Properties
- AppPermissions
Gets the applications permissions.
- ApplicationId
Gets the ID of the application that created this interaction.
- AuthorizingIntegrationOwners
Gets which integrations authorized the interaction.
- Channel
Gets the channel that invoked this interaction.
- ChannelId
Gets the Id of the channel that invoked this interaction.
- Context
Gets the interaction's calling context.
- Data
Gets the command data for this interaction.
- EntitlementSkuIds
Gets the entitlement sku ids.
This is related to premium subscriptions for bots.
warning
Can only be used if you have an associated application subscription sku.
- Entitlements
Gets the entitlements.
This is related to premium subscriptions for bots.
warning
Can only be used if you have an associated application subscription sku.
- Guild
Gets the guild that invoked this interaction.
- GuildId
Gets the Id of the guild that invoked this interaction, if any.
- GuildLocale
Gets the guild locale if applicable.
- Locale
Gets the invoking user locale.
- Token
Gets the continuation token for responding to this interaction.
- Type
Gets the type of interaction invoked.
- User
Gets the user that invoked this interaction.
This can be cast to a DiscordMember if created in a guild.
- Version
Gets the version number for this interaction type.
Methods
- CreateFollowupMessageAsync(DiscordFollowupMessageBuilder)
Creates a follow up message to this interaction.
- CreateInteractionIframeResponseAsync(string, string, IframeModalSize, string?)
Creates an iframe response to this interaction.
- CreateInteractionModalResponseAsync(DiscordInteractionModalBuilder)
Creates a modal response to this interaction.
- CreateResponseAsync(InteractionResponseType, DiscordInteractionResponseBuilder?)
Creates a response to this interaction.
- DeleteFollowupMessageAsync(ulong)
Deletes a follow up message.
- DeleteOriginalResponseAsync()
Deletes the original interaction response.
- EditFollowupMessageAsync(ulong, DiscordWebhookBuilder)
Edits a follow up message.
- EditOriginalResponseAsync(DiscordWebhookBuilder)
Edits the original interaction response.
- GetFollowupMessageAsync(ulong)
Gets a follow up message.
- GetOriginalResponseAsync()
Gets the original interaction response.