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

    Class CaseSensitivityAttribute

    Sets case sensitivity for the command.

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

    Command's case sensitivity will be taken from CaseSensitivityAttribute present on the method. If the method doesn't have the attribute, it'll be taken from CaseSensitivityAttribute present on the handler type. If the handler type also doesn't specify the priority, value set in CommandsOptions will be used.

    Respecting case sensitivity depends on the command initializer. All command initializers included with Wolfringo respect command's case sensitivity - respecting both CaseSensitivityAttribute and value in CommandsOptions.

    Constructors

    | Improve this Doc View Source

    CaseSensitivityAttribute(Boolean)

    Creates a new case sensitivity attribute.

    Declaration
    public CaseSensitivityAttribute(bool caseSensitive)
    Parameters
    Type Name Description
    System.Boolean caseSensitive

    Command's case sensitivity.

    Remarks

    See CaseSensitivityAttribute for more information about command's case sensitivity.

    Properties

    | Improve this Doc View Source

    CaseSensitive

    Command's case sensitivity.

    Declaration
    public bool CaseSensitive { get; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    See CaseSensitivityAttribute for more information about command's case sensitivity.