Interface ICommandContext
Represents a context of a command. This may include the client, guild, channel, user, and message.
Namespace: Discord.Commands
Assembly: Discord.Net.Core.dll
Syntax
public interface ICommandContext
Properties
| Improve this Doc View SourceChannel
Gets the IMessageChannel that the command is executed in.
Declaration
IMessageChannel Channel { get; }
Property Value
| Type | Description |
|---|---|
| IMessageChannel |
Client
Gets the IDiscordClient that the command is executed with.
Declaration
IDiscordClient Client { get; }
Property Value
| Type | Description |
|---|---|
| IDiscordClient |
Guild
Gets the IGuild that the command is executed in.
Declaration
IGuild Guild { get; }
Property Value
| Type | Description |
|---|---|
| IGuild |
Message
Gets the IUserMessage that the command is interpreted from.
Declaration
IUserMessage Message { get; }
Property Value
| Type | Description |
|---|---|
| IUserMessage |
User
Gets the IUser who executed the command.
Declaration
IUser User { get; }
Property Value
| Type | Description |
|---|---|
| IUser |