Interface ICommandContext
Represents a context of a command. This may include the client, guild, channel, user, and message.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface ICommandContext
Properties​
Client​
Gets the Discord.IDiscordClient that the command is executed with.
View Source​
Declaration
IDiscordClient Client { get; }
Guild​
Gets the Discord.IGuild that the command is executed in.
View Source​
Declaration
IGuild Guild { get; }
Channel​
Gets the Discord.IMessageChannel that the command is executed in.
View Source​
Declaration
IMessageChannel Channel { get; }
User​
Gets the Discord.IUser who executed the command.
View Source​
Declaration
IUser User { get; }
Message​
Gets the Discord.IUserMessage that the command is interpreted from.
View Source​
Declaration
IUserMessage Message { get; }