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

    Interface ICommandContext

    Represents a context of command execution.

    Namespace: TehGM.Wolfringo.Commands
    Assembly: Wolfringo.Commands.dll
    Syntax
    public interface ICommandContext

    Properties

    | Improve this Doc View Source

    Client

    WOLF client that received the message.

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

    Message

    Chat message that triggered the command.

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

    Options

    Options to use for processing the command.

    Declaration
    CommandsOptions Options { get; }
    Property Value
    Type Description
    CommandsOptions

    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)