Method RespondAsync
- Namespace
- DSharpPlus.CommandsNext
- Assembly
- DSharpPlus.CommandsNext.dll
RespondAsync(string)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(string content)
Parameters
content
stringMessage to respond with.
Returns
- Task<DiscordMessage>
RespondAsync(DiscordEmbed)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(DiscordEmbed embed)
Parameters
embed
DiscordEmbedEmbed to attach.
Returns
- Task<DiscordMessage>
RespondAsync(string, DiscordEmbed)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(string content, DiscordEmbed embed)
Parameters
content
stringMessage to respond with.
embed
DiscordEmbedEmbed to attach.
Returns
- Task<DiscordMessage>
RespondAsync(DiscordMessageBuilder)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(DiscordMessageBuilder builder)
Parameters
builder
DiscordMessageBuilderThe Discord Message builder.
Returns
- Task<DiscordMessage>
RespondAsync(Action<DiscordMessageBuilder>)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(Action<DiscordMessageBuilder> action)
Parameters
action
Action<DiscordMessageBuilder>The Discord Message builder.
Returns
- Task<DiscordMessage>