Table of Contents

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 string

The name of the option.

description string

The description of the option.

autocomplete bool

Whether this option should autocomplete.