Class CommandAutoCompleteInteractionImpl
java.lang.Object
net.dv8tion.jda.internal.interactions.InteractionImpl
net.dv8tion.jda.internal.interactions.command.CommandAutoCompleteInteractionImpl
- All Implemented Interfaces:
ISnowflake
,IAutoCompleteCallback
,CommandAutoCompleteInteraction
,CommandInteractionPayload
,Interaction
,CommandInteractionPayloadMixin
public class CommandAutoCompleteInteractionImpl
extends InteractionImpl
implements CommandInteractionPayloadMixin, CommandAutoCompleteInteraction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe channel this interaction happened in.The focused option which the user is typing.replyChoices
(Collection<Command.Choice> choices) Reply with up to 25 choices which can be picked from by the user.Methods inherited from class net.dv8tion.jda.internal.interactions.InteractionImpl
ack, getChannelIdLong, getContext, getEntitlements, getGuild, getIdLong, getIntegrationOwners, getJDA, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledged, releaseHook
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandAutoCompleteInteraction
getGuildChannel
Methods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload
getCommandId, getCommandString, getFullCommandName, getOption, getOption, getOption, getOption, getOptionsByName, getOptionsByType, isGlobalCommand
Methods inherited from interface net.dv8tion.jda.internal.interactions.command.CommandInteractionPayloadMixin
getCommandIdLong, getCommandType, getName, getOptions, getSubcommandGroup, getSubcommandName, isGuildCommand
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IAutoCompleteCallback
replyChoice, replyChoice, replyChoice, replyChoiceDoubles, replyChoiceDoubles, replyChoiceLongs, replyChoiceLongs, replyChoices, replyChoiceStrings, replyChoiceStrings
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelId, getChannelIdLong, getChannelType, getContext, getEntitlements, getGuild, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Constructor Details
-
CommandAutoCompleteInteractionImpl
-
-
Method Details
-
getFocusedOption
Description copied from interface:CommandAutoCompleteInteraction
The focused option which the user is typing.This is not validated by the Discord API and may contain invalid/incomplete inputs.
- Specified by:
getFocusedOption
in interfaceCommandAutoCompleteInteraction
- Returns:
- The focused
AutoCompleteQuery
-
getChannel
Description copied from interface:Interaction
The channel this interaction happened in.- Specified by:
getChannel
in interfaceCommandAutoCompleteInteraction
- Specified by:
getChannel
in interfaceInteraction
- Overrides:
getChannel
in classInteractionImpl
- Returns:
- The channel or null if the channel is not provided
-
getCommandPayload
- Specified by:
getCommandPayload
in interfaceCommandInteractionPayloadMixin
-
replyChoices
@Nonnull public AutoCompleteCallbackAction replyChoices(@Nonnull Collection<Command.Choice> choices) Description copied from interface:IAutoCompleteCallback
Reply with up to 25 choices which can be picked from by the user.
The user may continue writing inputs instead of using one of your choices.- Specified by:
replyChoices
in interfaceIAutoCompleteCallback
- Parameters:
choices
- The choice suggestions to present to the user, 0-25 choices- Returns:
AutoCompleteCallbackAction
-