Class AutocompleteAttribute
Set the IsAutocomplete to true.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class AutocompleteAttribute : Attribute
Constructors
| Improve this Doc View SourceAutocompleteAttribute()
Set the IsAutocomplete to true without specifying a AutocompleteHandler.
Declaration
public AutocompleteAttribute()
AutocompleteAttribute(Type)
Set the IsAutocomplete to true and define a AutocompleteHandler to handle
Autocomplete interactions targeting the parameter this
Declaration
public AutocompleteAttribute(Type autocompleteHandlerType)
Parameters
Type | Name | Description |
---|---|---|
Type | autocompleteHandlerType |
Remarks
EnableAutocompleteHandlers must be set to true to use this constructor.
Properties
| Improve this Doc View SourceAutocompleteHandlerType
Type of the AutocompleteHandler.
Declaration
public Type AutocompleteHandlerType { get; }
Property Value
Type | Description |
---|---|
Type |