Search Results for

    Show / Hide Table of Contents

    Class OptionAttribute

    Marks this parameter as an option for a slash command

    Inheritance
    System.Object
    System.Attribute
    OptionAttribute
    Namespace: DisCatSharp.ApplicationCommands
    Assembly: DisCatSharp.ApplicationCommands.dll
    Syntax
    [AttributeUsage(AttributeTargets.Parameter)]
    public class OptionAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    OptionAttribute(String, String, Boolean)

    Initializes a new instance of the OptionAttribute class.

    Declaration
    public OptionAttribute(string name, string description, bool autocomplete = false)
    Parameters
    Type Name Description
    System.String name

    The name.

    System.String description

    The description.

    System.Boolean autocomplete

    If true, autocomplete.

    Fields

    | Improve this Doc View Source

    Autocomplete

    Whether to autocomplete this option.

    Declaration
    public bool Autocomplete
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Description

    Gets the description of this option.

    Declaration
    public string Description
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    Name

    Gets the name of this option.

    Declaration
    public string Name
    Field Value
    Type Description
    System.String

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems