Table of Contents

Class CommandContext

Namespace
DisCatSharp.CommandsNext
Assembly
DisCatSharp.CommandsNext.dll

Represents a context in which a command is executed.

public sealed class CommandContext : DisCatSharpCommandContext
Inheritance
CommandContext
Inherited Members

Properties

Channel

Gets the channel in which the execution was triggered,

Command

Gets the command that is being executed.

CommandsNext

Gets the CommandsNext service instance that handled this command.

Guild

Gets the guild in which the execution was triggered. This property is null for commands sent over direct messages.

Member

Gets the member who triggered the execution. This property is null for commands sent over direct messages.

Message

Gets the message that triggered the execution.

Overload

Gets the overload of the command that is being executed.

Prefix

Gets the prefix used to invoke the command.

RawArgumentString

Gets the raw string from which the arguments were extracted.

RawArguments

Gets the list of raw arguments passed to the command.

Services

Gets the service provider for this CNext instance.

User

Gets the user who triggered the execution.

Methods

RespondAsync(DiscordEmbed)

Quickly respond to the message that triggered the command.

RespondAsync(DiscordMessageBuilder)

Quickly respond to the message that triggered the command.

RespondAsync(Action<DiscordMessageBuilder>)

Quickly respond to the message that triggered the command.

RespondAsync(string)

Quickly respond to the message that triggered the command.

RespondAsync(string, DiscordEmbed)

Quickly respond to the message that triggered the command.

TriggerTypingAsync()

Triggers typing in the channel containing the message that triggered the command.