Class CommandContext
Represents a context of command execution.
Implements
Namespace: TehGM.Wolfringo.Commands
Assembly: Wolfringo.Commands.dll
Syntax
public class CommandContext : ICommandContext
Constructors
| Improve this Doc View SourceCommandContext(ChatMessage, IWolfClient, CommandsOptions)
Creates a command context.
Declaration
public CommandContext(ChatMessage message, IWolfClient client, CommandsOptions options)
Parameters
Type | Name | Description |
---|---|---|
ChatMessage | message | Chat message that triggered the command. |
IWolfClient | client | WOLF client that received the message. |
CommandsOptions | options | Default options to use for processing the command. |
Properties
| Improve this Doc View SourceClient
WOLF client that received the message.
Declaration
public IWolfClient Client { get; }
Property Value
Type | Description |
---|---|
IWolfClient |
IsGroup
Whether the message was sent in a group.
Declaration
public bool IsGroup { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsPrivate
Whether the message was sent in PM.
Declaration
public bool IsPrivate { get; }
Property Value
Type | Description |
---|---|
Boolean |
Message
Chat message that triggered the command.
Declaration
public ChatMessage Message { get; }
Property Value
Type | Description |
---|---|
ChatMessage |
Options
Options to use for processing the command.
Declaration
public CommandsOptions Options { get; }
Property Value
Type | Description |
---|---|
CommandsOptions |
Explicit Interface Implementations
| Improve this Doc View SourceICommandContext.Message
Chat message that triggered the command.
Declaration
IChatMessage ICommandContext.Message { get; }
Returns
Type | Description |
---|---|
IChatMessage |