Package net.dv8tion.jda.api.interactions
Class AutoCompleteQuery
java.lang.Object
net.dv8tion.jda.api.interactions.AutoCompleteQuery
The query input for an
auto-complete interaction
.
The value
of such a query may not be a valid instance of the expected type
.
Discord does not do any validation for auto-complete queries. However, you are required to reply with the correct type.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AutoCompleteQuery
-
-
Method Details
-
getName
The name of the input field, usually an option name inCommandAutoCompleteInteraction
.- Returns:
- The option name
-
getValue
The query value that the user is currently typing.This is not validated and may not be a valid value for an actual command. For instance, a user may input invalid numbers for
OptionType.NUMBER
.- Returns:
- The current auto-completable query value
-
getType
The expected option type for this query.- Returns:
- The option type expected from this auto-complete response
-
hashCode
public int hashCode() -
equals
-
toString
-