class Discordrb::Events::ModalSubmitEvent
An event for when a user submits a modal.
Attributes
components[R]
@return [Array<TextInputComponent>]
Public Instance Methods
value(custom_id)
click to toggle source
Get the value of an input passed to the modal. @param custom_id [String] The custom ID of the component to look for. @return [String, nil]
# File lib/discordrb/events/interactions.rb, line 404 def value(custom_id) get_component(custom_id)&.value end