Class: RubyCord::Interaction::SelectMenu
- Inherits:
-
Component
- Object
- DiscordModel
- RubyCord::Interaction
- Component
- RubyCord::Interaction::SelectMenu
- Defined in:
- lib/rubycord/interaction/component/select_menu.rb
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 Component
Attributes inherited from RubyCord::Interaction
#app_permissions, #application_id, #guild_locale, #id, #locale, #token, #type, #user, #version
Method Summary
Methods included from ModalResponder
Methods included from UpdateResponder
Methods included from SourceResponder
Methods inherited from RubyCord::Interaction
#channel, #delete_original_message, #edit_original_message, #guild, #inspect, #post
Methods inherited from DiscordModel
Instance Attribute Details
#custom_id ⇒ String (readonly)
Returns The custom id of the select menu.
10 11 12 |
# File 'lib/rubycord/interaction/component/select_menu.rb', line 10 def custom_id @custom_id end |
#value ⇒ Object (readonly)
17 18 19 |
# File 'lib/rubycord/interaction/component/select_menu.rb', line 17 def value @values[0] end |
#values ⇒ Array<String> (readonly)
Returns The selected options.
12 13 14 |
# File 'lib/rubycord/interaction/component/select_menu.rb', line 12 def values @values end |