Table of Contents

Class CommandContext

Namespace
Fluxer.Net.Commands
Assembly
Fluxer.Net.dll

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
object
CommandContext
Implements

Constructors

CommandContext(FluxerClient, SocketMessage)

Initializes a new CommandContext class with the provided client and message.

public CommandContext(FluxerClient client, SocketMessage message)

Parameters

client FluxerClient

The underlying client.

message SocketMessage

The underlying message.

Properties

Channel

public Channel Channel { get; }

Property Value

Channel

Client

Fluxer base client for the context.

public FluxerClient Client { get; }

Property Value

FluxerClient

Command

public CommandInfo Command { get; }

Property Value

CommandInfo

Gateway

Fluxer gateway client for the context.

public FluxerGatewayClient Gateway { get; }

Property Value

FluxerGatewayClient

Guild

public SocketGuild? Guild { get; }

Property Value

SocketGuild

IsPrivate

Channel is a DM.

public bool IsPrivate { get; }

Property Value

bool

Member

public SocketGuildMember? Member { get; }

Property Value

SocketGuildMember

Message

public SocketMessage Message { get; }

Property Value

SocketMessage

Rest

Fluxer http client for the context.

public FluxerApiClient Rest { get; }

Property Value

FluxerApiClient

User

public SocketUser User { get; }

Property Value

SocketUser