Class: Discorb::MessageComponentInteraction::SelectMenu
- Inherits:
-
Discorb::MessageComponentInteraction
- Object
- DiscordModel
- Interaction
- Discorb::MessageComponentInteraction
- Discorb::MessageComponentInteraction::SelectMenu
- Defined in:
- lib/discorb/interaction/components.rb
Overview
Represents a select menu interaction.
Instance Attribute Summary collapse
-
#custom_id -> String
readonly
The custom id of the select menu.
- #value -> Object readonly
-
#values -> Array<String>
readonly
The selected options.
Attributes inherited from Discorb::MessageComponentInteraction
Attributes inherited from Interaction
#app_permissions, #application_id, #guild_locale, #id, #locale, #token, #type, #user, #version
Method Summary
Methods included from Interaction::ModalResponder
Methods included from Interaction::UpdateResponder
Methods included from Interaction::SourceResponder
Methods inherited from Interaction
Methods inherited from DiscordModel
Instance Attribute Details
#custom_id -> String (readonly)
Returns The custom id of the select menu.
85 86 87 |
# File 'lib/discorb/interaction/components.rb', line 85 def custom_id @custom_id end |
#value -> Object (readonly)
92 93 94 |
# File 'lib/discorb/interaction/components.rb', line 92 def value @values[0] end |
#values -> Array<String> (readonly)
Returns The selected options.
87 88 89 |
# File 'lib/discorb/interaction/components.rb', line 87 def values @values end |