Table of Contents

Class AutocompleteResult

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a result to an autocomplete interaction.

public class AutocompleteResult
Inheritance
AutocompleteResult
Inherited Members

Constructors

AutocompleteResult()

Creates a new AutocompleteResult.

public AutocompleteResult()

AutocompleteResult(string, object)

Creates a new AutocompleteResult with the passed in name and value.

public AutocompleteResult(string name, object value)

Parameters

name string
value object

Exceptions

ArgumentNullException
ArgumentException

Properties

Name

Gets or sets the name of the result.

public string Name { get; set; }

Property Value

string

Remarks

Name cannot be null and has to be between 1-100 characters in length.

Exceptions

ArgumentNullException
ArgumentException

Value

Gets or sets the value of the result.

public object Value { get; set; }

Property Value

object

Remarks

Only string, int, and double are allowed for a value.

Exceptions

ArgumentNullException
ArgumentException