Class: Discordrb::Events::ModalSubmitEvent
- Inherits:
-
ComponentEvent
- Object
- Event
- InteractionCreateEvent
- ComponentEvent
- Discordrb::Events::ModalSubmitEvent
- Defined in:
- lib/discordrb/events/interactions.rb
Overview
An event for when a user submits a modal.
Instance Attribute Summary collapse
Attributes inherited from ComponentEvent
Attributes inherited from InteractionCreateEvent
#channel, #channel_id, #interaction, #server, #server_id, #type, #user
Attributes inherited from Event
Instance Method Summary collapse
-
#value(custom_id) ⇒ String?
Get the value of an input passed to the modal.
Methods inherited from InteractionCreateEvent
#defer, #defer_update, #delete_message, #delete_response, #edit_message, #edit_response, #get_component, #initialize, #respond, #send_message, #show_modal, #update_message
Instance Attribute Details
#components ⇒ Array<TextInputComponent> (readonly)
399 400 401 |
# File 'lib/discordrb/events/interactions.rb', line 399 def components @components end |
Instance Method Details
#value(custom_id) ⇒ String?
Get the value of an input passed to the modal.
404 405 406 |
# File 'lib/discordrb/events/interactions.rb', line 404 def value(custom_id) get_component(custom_id)&.value end |