Table of Contents

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.

AttachmentSizeLimit

Gets the attachment size limit in bytes.

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.

Entitlements

Gets the entitlements.

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?, ModifyMode)

Creates a response to this interaction.

DeleteFollowupMessageAsync(ulong)

Deletes a follow-up message.

DeleteOriginalResponseAsync()

Deletes the original interaction response.

EditFollowupMessageAsync(ulong, DiscordWebhookBuilder, ModifyMode)

Edits a follow-up message.

EditOriginalResponseAsync(DiscordWebhookBuilder, ModifyMode)

Edits the original interaction response.

GetFollowupMessageAsync(ulong)

Gets a follow-up message.

GetOriginalResponseAsync()

Gets the original interaction response.