Interface ButtonInteraction
- All Superinterfaces:
ComponentInteraction,ICustomIdInteraction,IDeferrableCallback,IMessageEditCallback,IModalCallback,Interaction,IReplyCallback,ISnowflake
- All Known Implementing Classes:
ButtonInteractionEvent
Interaction on a
Button component.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault RestAction<Void> editButton(Button newButton) Update the button with a new button instance.TheButtonthis interaction belongs to.default ButtonTheActionComponentinstance.Methods inherited from interface net.dv8tion.jda.api.interactions.components.ComponentInteraction
getChannel, getComponentId, getComponentType, getCustomId, getGuildChannel, getMessage, getMessageId, getMessageIdLong, getUniqueIdMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHookMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IMessageEditCallback
deferEdit, editComponents, editComponents, editComponents, editMessage, editMessage, editMessageAttachments, editMessageAttachments, editMessageEmbeds, editMessageEmbeds, editMessageFormatMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IModalCallback
replyModalMethods 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, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPollMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getComponent
Description copied from interface:ComponentInteractionTheActionComponentinstance.- Specified by:
getComponentin interfaceComponentInteraction- Returns:
- The
ActionComponent
-
getButton
TheButtonthis interaction belongs to.- Returns:
- The
Button - See Also:
-
editButton
Update the button with a new button instance.If this interaction is already acknowledged this will use
IDeferrableCallback.getHook()and otherwiseIMessageEditCallback.editComponents(Collection)directly to acknowledge the interaction.- Parameters:
newButton- The new button to use, or null to remove this button from the message entirely- Returns:
RestAction
-