Method RespondAsync
- Namespace
- DSharpPlus.Commands.Processors.SlashCommands
- Assembly
- DSharpPlus.Commands.dll
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.
public virtual ValueTask RespondAsync(string content, bool ephemeral)Parameters
- contentstring
- Content to send in the response. 
- ephemeralbool
- Specifies whether this response should be ephemeral. 
Returns
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.
public virtual ValueTask RespondAsync(DiscordEmbed embed, bool ephemeral)Parameters
- embedDiscordEmbed
- Embed to send in the response. 
- ephemeralbool
- Specifies whether this response should be ephemeral. 
Returns
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.
public virtual ValueTask RespondAsync(string content, DiscordEmbed embed, bool ephemeral)Parameters
- contentstring
- Content to send in the response. 
- embedDiscordEmbed
- Embed to send in the response. 
- ephemeralbool
- Specifies whether this response should be ephemeral. 
Returns
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.
public override ValueTask RespondAsync(IDiscordMessageBuilder builder)Parameters
- builderIDiscordMessageBuilder
- The message builder.