Method RespondAsync
- Namespace
- DSharpPlus.Commands
- Assembly
- DSharpPlus.Commands.dll
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.
public virtual ValueTask RespondAsync(string content)
Parameters
content
stringContent to send in the response.
Returns
- ValueTask
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.
public virtual ValueTask RespondAsync(DiscordEmbed embed)
Parameters
embed
DiscordEmbedEmbed to send in the response.
Returns
- ValueTask
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.
public virtual ValueTask RespondAsync(string content, DiscordEmbed embed)
Parameters
content
stringContent to send in the response.
embed
DiscordEmbedEmbed to send in the response.
Returns
- ValueTask
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 abstract ValueTask RespondAsync(IDiscordMessageBuilder builder)
Parameters
builder
IDiscordMessageBuilderThe message builder.
Returns
- ValueTask