Package dev.sympho.bot_utils.component
Class ModalManager.ModalContext
java.lang.Object
dev.sympho.bot_utils.component.ComponentManager.ComponentContext<ModalSubmitInteractionEvent>
dev.sympho.bot_utils.component.ModalManager.ModalContext
- All Implemented Interfaces:
AccessContext,AccessValidator,ChannelAccessContext
- Enclosing class:
- ModalManager
public final class ModalManager.ModalContext
extends ComponentManager.ComponentContext<ModalSubmitInteractionEvent>
The execution context of a modal being submitted.
- Since:
- 1.0
-
Method Summary
Methods inherited from class dev.sympho.bot_utils.component.ComponentManager.ComponentContext
getChannel, getChannelId, getClient, getEvent, getGuild, getGuildId, getInteraction, getMember, getMember, getMessage, getMessageId, getUser, hasAccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.sympho.bot_utils.access.AccessContext
asGuild, isPrivateMethods inherited from interface dev.sympho.bot_utils.access.AccessValidator
validateMethods inherited from interface dev.sympho.bot_utils.access.ChannelAccessContext
asUser
-
Method Details
-
getField
Retrieves the input field with the given custom ID.- Parameters:
fieldId- The custom ID.- Returns:
- The input field with that ID.
- Throws:
IllegalArgumentException- if there is no field in this context with that ID.
-
getFields
Retrieves the input fields in this context.- Returns:
- The input fields.
-