Table of Contents

Interface ICommandContext

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

The context of a command. This may include the client, guild, channel, user, and message.

public interface ICommandContext

Properties

Channel

Current channel for the context.

IChannel Channel { get; }

Property Value

IChannel

Client

Fluxer base client for the context.

FluxerClient Client { get; }

Property Value

FluxerClient

Command

Command info from the command used.

CommandInfo Command { get; }

Property Value

CommandInfo

Gateway

Fluxer gateway client for the context.

FluxerGatewayClient Gateway { get; }

Property Value

FluxerGatewayClient

Guild

Current guild for the context.

IGuild? Guild { get; }

Property Value

IGuild

IsPrivate

Channel is a DM.

bool IsPrivate { get; }

Property Value

bool

Member

Current server member for the context.

IGuildMember? Member { get; }

Property Value

IGuildMember

Message

Current message for the context.

IMessage Message { get; }

Property Value

IMessage

Rest

Fluxer http client for the context.

FluxerApiClient Rest { get; }

Property Value

FluxerApiClient

User

Current user for the context.

IUser User { get; }

Property Value

IUser