Package org.javacord.api.interaction
Interface MessageComponentInteraction
-
- All Superinterfaces:
DiscordEntity,InteractionBase,MessageComponentInteractionBase,Specializable<InteractionBase>
- All Known Subinterfaces:
SelectMenuInteraction
public interface MessageComponentInteraction extends MessageComponentInteractionBase, Specializable<InteractionBase>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<ButtonInteraction>asButtonInteraction()Get this interaction as button interaction if the type matches.default java.util.Optional<SelectMenuInteraction>asSelectMenuInteraction()Get this interaction as select menu interaction if the type matches.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
Methods inherited from interface org.javacord.api.interaction.InteractionBase
createFollowupMessageBuilder, createImmediateResponder, getApplicationId, getChannel, getLocale, getServer, getServerLocale, getToken, getType, getUser, getVersion, respondLater, respondLater, respondWithModal, respondWithModal
-
Methods inherited from interface org.javacord.api.interaction.MessageComponentInteractionBase
acknowledge, createOriginalMessageUpdater, getComponentType, getCustomId, getMessage
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
asButtonInteraction
default java.util.Optional<ButtonInteraction> asButtonInteraction()
Get this interaction as button interaction if the type matches.- Returns:
- the interaction as button interaction if the type matches; an empty optional otherwise
-
asSelectMenuInteraction
default java.util.Optional<SelectMenuInteraction> asSelectMenuInteraction()
Get this interaction as select menu interaction if the type matches.- Returns:
- the interaction as select menu interaction if the type matches; an empty optional otherwise
-
-