Class: Discordrb::Components::SelectMenu::Option
- Inherits:
-
Object
- Object
- Discordrb::Components::SelectMenu::Option
- Defined in:
- lib/discordrb/data/component.rb
Overview
A select menu option.
Instance Attribute Summary collapse
- #description ⇒ String? readonly
- #emoji ⇒ Emoji? readonly
- #label ⇒ String readonly
- #value ⇒ String readonly
Instance Method Summary collapse
-
#initialize(data) ⇒ Option
constructor
A new instance of Option.
Constructor Details
Instance Attribute Details
#description ⇒ String? (readonly)
130 131 132 |
# File 'lib/discordrb/data/component.rb', line 130 def description @description end |
#emoji ⇒ Emoji? (readonly)
133 134 135 |
# File 'lib/discordrb/data/component.rb', line 133 def emoji @emoji end |
#label ⇒ String (readonly)
124 125 126 |
# File 'lib/discordrb/data/component.rb', line 124 def label @label end |
#value ⇒ String (readonly)
127 128 129 |
# File 'lib/discordrb/data/component.rb', line 127 def value @value end |