Table of Contents

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 string

Message 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 DiscordEmbed

Embed 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 string

Message to respond with.

embed DiscordEmbed

Embed to attach.

Returns

Task<DiscordMessage>

RespondAsync(DiscordMessageBuilder)

Quickly respond to the message that triggered the command.

public Task<DiscordMessage> RespondAsync(DiscordMessageBuilder builder)

Parameters

builder DiscordMessageBuilder

The 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>