Table of Contents

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

content string

Message to respond with.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task<DiscordMessage>

RespondAsync(DiscordEmbed, CancellationToken)

Quickly respond to the message that triggered the command.

public Task<DiscordMessage> RespondAsync(DiscordEmbed embed, CancellationToken cancellationToken = default)

Parameters

embed DiscordEmbed

Embed to attach.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task<DiscordMessage>

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

content string

Message to respond with.

embed DiscordEmbed

Embed to attach.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task<DiscordMessage>

RespondAsync(DiscordMessageBuilder, CancellationToken)

Quickly respond to the message that triggered the command.

public Task<DiscordMessage> RespondAsync(DiscordMessageBuilder builder, CancellationToken cancellationToken = default)

Parameters

builder DiscordMessageBuilder

The Discord Message builder.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task<DiscordMessage>

RespondAsync(Action<DiscordMessageBuilder>, CancellationToken)

Quickly respond to the message that triggered the command.

public Task<DiscordMessage> RespondAsync(Action<DiscordMessageBuilder> action, CancellationToken cancellationToken = default)

Parameters

action Action<DiscordMessageBuilder>

The Discord Message builder.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task<DiscordMessage>