Table of Contents

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

parameterName string

Name of the target parameter.

commandName string

Name of the target command.

runMode RunMode

Set the run mode of the command.

Properties

CommandName

Gets the name of the target command.

public string CommandName { get; }

Property Value

string

ParameterName

Gets the name of the target parameter.

public string ParameterName { get; }

Property Value

string

RunMode

Get the run mode this command gets executed with.

public RunMode RunMode { get; }

Property Value

RunMode