Class: OnyxCord::Components::SelectMenu::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/onyxcord/models/component.rb

Overview

A select menu option.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString? (readonly)

Returns the description of the option.

Returns:

  • (String, nil)

    the description of the option.



168
169
170
# File 'lib/onyxcord/models/component.rb', line 168

def description
  @description
end

#emojiEmoji? (readonly)

Returns the emoji of the option, or nil.

Returns:

  • (Emoji, nil)

    the emoji of the option, or nil.



171
172
173
# File 'lib/onyxcord/models/component.rb', line 171

def emoji
  @emoji
end

#labelString (readonly)

Returns the label of the option.

Returns:

  • (String)

    the label of the option.



162
163
164
# File 'lib/onyxcord/models/component.rb', line 162

def label
  @label
end

#valueString (readonly)

Returns the value of the option.

Returns:

  • (String)

    the value of the option.



165
166
167
# File 'lib/onyxcord/models/component.rb', line 165

def value
  @value
end