Class AutocompleteCommandAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Create an Autocomplete Command.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class AutocompleteCommandAttribute : Attribute
- Inheritance
-
AutocompleteCommandAttribute
- Inherited Members
Constructors
AutocompleteCommandAttribute(string, string, RunMode)
Create a command for Autocomplete interaction handling.
public AutocompleteCommandAttribute(string parameterName, string commandName, RunMode runMode = RunMode.Default)
Parameters
parameterNamestringName of the target parameter.
commandNamestringName of the target command.
runModeRunModeSet the run mode of the command.
Properties
CommandName
Gets the name of the target command.
public string CommandName { get; }
Property Value
ParameterName
Gets the name of the target parameter.
public string ParameterName { get; }
Property Value
RunMode
Get the run mode this command gets executed with.
public RunMode RunMode { get; }