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

    Class CommandAttribute

    Marks a method as a Command for Commands System.

    Inheritance
    System.Object
    System.Attribute
    CommandAttributeBase
    CommandAttribute
    Inherited Members
    CommandAttributeBase.Timeout
    Namespace: TehGM.Wolfringo.Commands
    Assembly: Wolfringo.Commands.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
    public class CommandAttribute : CommandAttributeBase
    Remarks

    This attribute represents a normal, simple command.

    Constructors

    | Improve this Doc View Source

    CommandAttribute(String)

    Declaration
    public CommandAttribute(string text)
    Parameters
    Type Name Description
    System.String text

    Text that will trigger the command.

    Properties

    | Improve this Doc View Source

    Text

    Text that will trigger the command.

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    System.String
    Remarks

    This text needs to be right after prefix, or at the beginning of the message if prefix is not required.