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)
122 123 124 |
# File 'lib/discordrb/data/component.rb', line 122 def description @description end |
#emoji ⇒ Emoji? (readonly)
125 126 127 |
# File 'lib/discordrb/data/component.rb', line 125 def emoji @emoji end |
#label ⇒ String (readonly)
116 117 118 |
# File 'lib/discordrb/data/component.rb', line 116 def label @label end |
#value ⇒ String (readonly)
119 120 121 |
# File 'lib/discordrb/data/component.rb', line 119 def value @value end |