Method RespondAsync
- Namespace
- DisCatSharp.CommandsNext
- Assembly
- DisCatSharp.CommandsNext.dll
RespondAsync(string, CancellationToken)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(string content, CancellationToken cancellationToken = default)
Parameters
contentstringMessage to respond with.
cancellationTokenCancellationTokenA cancellation token to cancel the operation.
Returns
RespondAsync(DiscordEmbed, CancellationToken)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(DiscordEmbed embed, CancellationToken cancellationToken = default)
Parameters
embedDiscordEmbedEmbed to attach.
cancellationTokenCancellationTokenA cancellation token to cancel the operation.
Returns
RespondAsync(string, DiscordEmbed, CancellationToken)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(string content, DiscordEmbed embed, CancellationToken cancellationToken = default)
Parameters
contentstringMessage to respond with.
embedDiscordEmbedEmbed to attach.
cancellationTokenCancellationTokenA cancellation token to cancel the operation.
Returns
RespondAsync(DiscordMessageBuilder, CancellationToken)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(DiscordMessageBuilder builder, CancellationToken cancellationToken = default)
Parameters
builderDiscordMessageBuilderThe Discord Message builder.
cancellationTokenCancellationTokenA cancellation token to cancel the operation.
Returns
RespondAsync(Action<DiscordMessageBuilder>, CancellationToken)
Quickly respond to the message that triggered the command.
public Task<DiscordMessage> RespondAsync(Action<DiscordMessageBuilder> action, CancellationToken cancellationToken = default)
Parameters
actionAction<DiscordMessageBuilder>The Discord Message builder.
cancellationTokenCancellationTokenA cancellation token to cancel the operation.