Table of Contents

Class CommandContext

Namespace
DSharpPlus.Commands
Assembly
DSharpPlus.Commands.dll

Represents a base context for application command contexts.

public abstract record CommandContext : AbstractContext
Inheritance
object
CommandContext
Derived
Inherited Members

Fields

followupMessages

Properties

Arguments

The command arguments.

FollowupMessages

The followup messages sent from this interaction.

Methods

As<T>()

Cast this context to a different one.

DeferResponseAsync()

Creates a deferred response to this interaction.

DeleteFollowupAsync(ulong)

Deletes a followup message sent from this interaction.

DeleteResponseAsync()

Deletes the sent response.

EditFollowupAsync(ulong, DiscordEmbed)

Edits a followup message.

EditFollowupAsync(ulong, IDiscordMessageBuilder)

Edits a followup message.

EditFollowupAsync(ulong, string)

Edits a followup message.

EditFollowupAsync(ulong, string, DiscordEmbed)

Edits a followup message.

EditResponseAsync(DiscordEmbed)

Edits the response.

EditResponseAsync(IDiscordMessageBuilder)

Edits the response.

EditResponseAsync(string)

Edits the response.

EditResponseAsync(string, DiscordEmbed)

Edits the response.

FollowupAsync(DiscordEmbed)

Creates a followup message to the interaction.

FollowupAsync(IDiscordMessageBuilder)

Creates a followup message to the interaction.

FollowupAsync(string)

Creates a followup message to the interaction.

FollowupAsync(string, DiscordEmbed)

Creates a followup message to the interaction.

GetFollowupAsync(ulong, bool)

Gets a sent followup message from this interaction.

GetResponseAsync()

Gets the sent response.

RespondAsync(DiscordEmbed)

Creates a response to this interaction.

You must create a response within 3 seconds of this interaction being executed; if the command has the potential to take more than 3 seconds, use DeferResponseAsync() at the start, and edit the response later.

RespondAsync(IDiscordMessageBuilder)

Creates a response to this interaction.

You must create a response within 3 seconds of this interaction being executed; if the command has the potential to take more than 3 seconds, use DeferResponseAsync() at the start, and edit the response later.

RespondAsync(string)

Creates a response to this interaction.

You must create a response within 3 seconds of this interaction being executed; if the command has the potential to take more than 3 seconds, use DeferResponseAsync() at the start, and edit the response later.

RespondAsync(string, DiscordEmbed)

Creates a response to this interaction.

You must create a response within 3 seconds of this interaction being executed; if the command has the potential to take more than 3 seconds, use DeferResponseAsync() at the start, and edit the response later.