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
The description of the option.
-
#emoji ⇒ Emoji?
readonly
The emoji of the option, or
nil. -
#label ⇒ String
readonly
The label of the option.
-
#value ⇒ String
readonly
The value of the option.
Instance Attribute Details
#description ⇒ String? (readonly)
Returns the description of the option.
162 163 164 |
# File 'lib/discordrb/data/component.rb', line 162 def description @description end |
#emoji ⇒ Emoji? (readonly)
Returns the emoji of the option, or nil.
165 166 167 |
# File 'lib/discordrb/data/component.rb', line 165 def emoji @emoji end |
#label ⇒ String (readonly)
Returns the label of the option.
156 157 158 |
# File 'lib/discordrb/data/component.rb', line 156 def label @label end |
#value ⇒ String (readonly)
Returns the value of the option.
159 160 161 |
# File 'lib/discordrb/data/component.rb', line 159 def value @value end |