Interface CommandAutoCompleteInteraction
-
- All Superinterfaces:
CommandInteractionPayload
,IAutoCompleteCallback
,Interaction
,ISnowflake
- All Known Implementing Classes:
CommandAutoCompleteInteractionEvent
public interface CommandAutoCompleteInteraction extends IAutoCompleteCallback, CommandInteractionPayload
Interaction for auto-complete options in slash-commands.
These interactions may provide incomplete lists of options with invalid values as they represent partial command executions. Some required options may be missing. All the provided options can be used as "context" for the focused option, but they might not be valid.This is used to suggest up to 25 choices for the focused option.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutoCompleteQuery
getFocusedOption()
The focused option which the user is typing.-
Methods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload
getCommandId, getCommandIdLong, getCommandPath, getCommandString, getCommandType, getName, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName
-
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IAutoCompleteCallback
replyChoice, replyChoice, replyChoice, replyChoiceDoubles, replyChoiceDoubles, replyChoiceLongs, replyChoiceLongs, replyChoices, replyChoices, replyChoiceStrings, replyChoiceStrings
-
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannel, getChannelType, getGuild, getGuildChannel, getGuildLocale, getJDA, getMember, getMessageChannel, getNewsChannel, getPrivateChannel, getTextChannel, getThreadChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, getVoiceChannel, isAcknowledged, isFromGuild
-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
-
-
-
Method Detail
-
getFocusedOption
@Nonnull AutoCompleteQuery getFocusedOption()
The focused option which the user is typing.This is not validated by the Discord API and may contain invalid/incomplete inputs.
- Returns:
- The focused
AutoCompleteQuery
-
-