Class CommandContext
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class CommandContext : ICommandContext
- Inheritance
-
objectCommandContext
- Implements
Constructors
CommandContext(FluxerClient, SocketMessage)
Initializes a new CommandContext class with the provided client and message.
public CommandContext(FluxerClient client, SocketMessage message)
Parameters
clientFluxerClientThe underlying client.
messageSocketMessageThe underlying message.
Properties
Channel
public Channel Channel { get; }
Property Value
Client
Fluxer base client for the context.
public FluxerClient Client { get; }
Property Value
Command
public CommandInfo Command { get; }
Property Value
Gateway
Fluxer gateway client for the context.
public FluxerGatewayClient Gateway { get; }
Property Value
Guild
public SocketGuild? Guild { get; }
Property Value
IsPrivate
Channel is a DM.
public bool IsPrivate { get; }
Property Value
Member
public SocketGuildMember? Member { get; }
Property Value
Message
public SocketMessage Message { get; }
Property Value
Rest
Fluxer http client for the context.
public FluxerApiClient Rest { get; }
Property Value
User
public SocketUser User { get; }