Class SlashCommandContext
- Namespace
- DSharpPlus.Commands.Processors.SlashCommands
- Assembly
- DSharpPlus.Commands.dll
Represents a base context for slash command contexts.
public record SlashCommandContext : CommandContext
- Inheritance
-
objectSlashCommandContext
- Derived
- Inherited Members
Properties
Methods
- DeferResponseAsync()
Creates a deferred response to this interaction.
- DeferResponseAsync(bool)
Creates a deferred response to this interaction.
- DeleteFollowupAsync(ulong)
Deletes a followup message sent from this interaction.
- DeleteResponseAsync()
Deletes the sent response.
- EditFollowupAsync(ulong, IDiscordMessageBuilder)
Edits a followup message.
- EditResponseAsync(IDiscordMessageBuilder)
Edits the response.
- FollowupAsync(DiscordEmbed, bool)
Creates a followup message to the interaction.
- FollowupAsync(IDiscordMessageBuilder)
Creates a followup message to the interaction.
- FollowupAsync(string, DiscordEmbed, bool)
Creates a followup message to the interaction.
- FollowupAsync(string, bool)
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, bool)
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, DiscordEmbed, bool)
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, bool)
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.
- RespondWithModalAsync(DiscordInteractionResponseBuilder)
Respond to the command with a Modal.