Package net.dv8tion.jda.api.interactions
Interface ModalInteraction
- All Superinterfaces:
IDeferrableCallback,IMessageEditCallback,Interaction,IReplyCallback,ISnowflake
- All Known Implementing Classes:
ModalInteractionEvent
Interaction on a
Modal
If the modal of this interaction was a reply to a ComponentInteraction,
you can also use IMessageEditCallback.deferEdit() to edit the original message that contained the component instead of replying.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the custom id of the Modal in questiondefault ModalMappingConvenience method to get aModalMappingby its id from the List ofModalMappingsReturns a List ofModalMappingsrepresenting the values input by the user for each field when the modal was submitted.Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHookMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IMessageEditCallback
deferEdit, editComponents, editComponents, editMessage, editMessage, editMessageEmbeds, editMessageEmbeds, editMessageFormatMethods 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, isFromGuildMethods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyEmbeds, replyEmbeds, replyFile, replyFile, replyFile, replyFile, replyFormatMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getModalId
Returns the custom id of the Modal in question- Returns:
- Custom id
- See Also:
-
getValues
Returns a List ofModalMappingsrepresenting the values input by the user for each field when the modal was submitted.- Returns:
- Immutable List of
ModalMappings - See Also:
-
getValue
Convenience method to get aModalMappingby its id from the List ofModalMappingsReturns null if no component with that id has been found
- Parameters:
id- The custom id- Returns:
- ModalMapping with this id, or null if not found
- Throws:
IllegalArgumentException- If the provided id is null- See Also:
-