Constructor OptionAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
OptionAttribute(string, string, bool)
Marks this parameter as an option for a slash command.
public OptionAttribute(string name, string description, bool autocomplete = false)
Parameters
name
stringThe name of the option.
description
stringThe description of the option.
autocomplete
boolWhether this option should autocomplete.