Class AutocompleteCommandAttribute
Create an Autocomplete Command.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class AutocompleteCommandAttribute : Attribute
Constructors
| Improve this Doc View SourceAutocompleteCommandAttribute(String, String, RunMode)
Create a command for Autocomplete interaction handling.
Declaration
public AutocompleteCommandAttribute(string parameterName, string commandName, RunMode runMode = RunMode.Default)
Parameters
Type | Name | Description |
---|---|---|
String | parameterName | Name of the target parameter. |
String | commandName | Name of the target command. |
RunMode | runMode | Set the run mode of the command. |
Properties
| Improve this Doc View SourceCommandName
Gets the name of the target command.
Declaration
public string CommandName { get; }
Property Value
Type | Description |
---|---|
String |
ParameterName
Gets the name of the target parameter.
Declaration
public string ParameterName { get; }
Property Value
Type | Description |
---|---|
String |
RunMode
Get the run mode this command gets executed with.
Declaration
public RunMode RunMode { get; }
Property Value
Type | Description |
---|---|
RunMode |