Class: OnyxCord::Components::SelectMenu::Option
- Inherits:
-
Object
- Object
- OnyxCord::Components::SelectMenu::Option
- Defined in:
- lib/onyxcord/models/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.
168 169 170 |
# File 'lib/onyxcord/models/component.rb', line 168 def description @description end |
#emoji ⇒ Emoji? (readonly)
Returns the emoji of the option, or nil.
171 172 173 |
# File 'lib/onyxcord/models/component.rb', line 171 def emoji @emoji end |
#label ⇒ String (readonly)
Returns the label of the option.
162 163 164 |
# File 'lib/onyxcord/models/component.rb', line 162 def label @label end |
#value ⇒ String (readonly)
Returns the value of the option.
165 166 167 |
# File 'lib/onyxcord/models/component.rb', line 165 def value @value end |