Table of Contents

Class OptionAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

Marks this parameter as an option for a slash command

[AttributeUsage(AttributeTargets.Parameter)]
public class OptionAttribute : Attribute
Inheritance
OptionAttribute
Inherited Members

Constructors

OptionAttribute(string, string, bool)

Initializes a new instance of the OptionAttribute class.

Fields

Autocomplete

Whether to autocomplete this option.

Description

Gets the description of this option.

Name

Gets the name of this option.