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

    Class PrefixAttribute

    Overwrites prefix or prefix requirement specified by CommandsOptions.

    Inheritance
    Object
    Attribute
    PrefixAttribute
    Namespace: TehGM.Wolfringo.Commands
    Assembly: Wolfringo.Commands.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
    public class PrefixAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    PrefixAttribute(String)

    Declaration
    public PrefixAttribute(string prefix)
    Parameters
    Type Name Description
    String prefix

    Prefix for this command. Null means no overwriting.

    | Improve this Doc View Source

    PrefixAttribute(String, Nullable<PrefixRequirement>)

    Declaration
    public PrefixAttribute(string prefix, PrefixRequirement? requirePrefix)
    Parameters
    Type Name Description
    String prefix

    Prefix for this command. Null means no overwriting.

    Nullable<PrefixRequirement> requirePrefix

    Prefix requirement for this command. Null means no overwriting.

    | Improve this Doc View Source

    PrefixAttribute(PrefixRequirement)

    Declaration
    public PrefixAttribute(PrefixRequirement requirePrefix)
    Parameters
    Type Name Description
    PrefixRequirement requirePrefix

    Prefix requirement for this command.

    Properties

    | Improve this Doc View Source

    PrefixOverride

    Prefix for this command. Null means no overwriting.

    Declaration
    public string PrefixOverride { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    PrefixRequirementOverride

    Prefix requirement for this command. Null means no overwriting.

    Declaration
    public PrefixRequirement? PrefixRequirementOverride { get; }
    Property Value
    Type Description
    Nullable<PrefixRequirement>