Class AutocompleteResult
Represents a result to an autocomplete interaction.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class AutocompleteResult : object
Constructors
| Improve this Doc View SourceAutocompleteResult()
Creates a new AutocompleteResult.
Declaration
public AutocompleteResult()
AutocompleteResult(String, Object)
Creates a new AutocompleteResult with the passed in name
and value
.
Declaration
public AutocompleteResult(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
Object | value |
Properties
| Improve this Doc View SourceName
Gets or sets the name of the result.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Name cannot be null and has to be between 1-100 characters in length.
Value
Gets or sets the value of the result.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
Object |
Remarks
Only