Class CommandContext
The context of a command which may contain the client, user, guild, channel, and message.
Assembly: Discord.Net.Commands.dll​
View Source​
Declaration
public class CommandContext : ICommandContext
Properties​
Client​
Gets the Discord.IDiscordClient that the command is executed with.
View Source​
Declaration
public IDiscordClient Client { get; }
Guild​
Gets the Discord.IGuild that the command is executed in.
View Source​
Declaration
public IGuild Guild { get; }
Channel​
Gets the Discord.IMessageChannel that the command is executed in.
View Source​
Declaration
public IMessageChannel Channel { get; }
User​
Gets the Discord.IUser who executed the command.
View Source​
Declaration
public IUser User { get; }
Message​
Gets the Discord.IUserMessage that the command is interpreted from.
View Source​
Declaration
public IUserMessage Message { get; }
IsPrivate​
Indicates whether the channel that the command is executed in is a private channel.
View Source​
Declaration
public bool IsPrivate { get; }