Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class CommandContext

    Represents a context of command execution.

    Inheritance
    System.Object
    CommandContext
    Implements
    ICommandContext
    Namespace: TehGM.Wolfringo.Commands
    Assembly: Wolfringo.Commands.dll
    Syntax
    public class CommandContext : ICommandContext

    Constructors

    | Improve this Doc View Source

    CommandContext(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 Source

    Client

    WOLF client that received the message.

    Declaration
    public IWolfClient Client { get; }
    Property Value
    Type Description
    IWolfClient
    | Improve this Doc View Source

    IsGroup

    Whether the message was sent in a group.

    Declaration
    public bool IsGroup { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsPrivate

    Whether the message was sent in PM.

    Declaration
    public bool IsPrivate { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Message

    Chat message that triggered the command.

    Declaration
    public ChatMessage Message { get; }
    Property Value
    Type Description
    ChatMessage
    | Improve this Doc View Source

    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 Source

    ICommandContext.Message

    Chat message that triggered the command.

    Declaration
    IChatMessage ICommandContext.Message { get; }
    Returns
    Type Description
    IChatMessage

    Implements

    ICommandContext

    Extension Methods

    CommandContextExtensions.GetSenderAsync(ICommandContext, CancellationToken)
    CommandContextExtensions.GetBotProfileAsync(ICommandContext, CancellationToken)
    CommandContextExtensions.GetRecipientAsync<T>(ICommandContext, CancellationToken)
    CommandContextExtensions.ReplyTextAsync(ICommandContext, String, CancellationToken)
    CommandContextExtensions.ReplyTextAsync(ICommandContext, String, ChatMessageSendingOptions, CancellationToken)
    CommandContextExtensions.ReplyImageAsync(ICommandContext, IEnumerable<Byte>, CancellationToken)
    CommandContextExtensions.ReplyVoiceAsync(ICommandContext, IEnumerable<Byte>, CancellationToken)