Table of Contents

Class OptionAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

Marks this parameter as an option for a slash command.

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class OptionAttribute : Attribute
Inheritance
object
Attribute
OptionAttribute

Constructors

OptionAttribute(string, string, bool)

Marks this parameter as an option for a slash command.

Properties

Autocomplete

Gets whether this option should autocomplete.

Description

Gets the description of this option.

Name

Gets the name of this option.