Class: Discordrb::Components::SelectMenu::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/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.



162
163
164
# File 'lib/discordrb/data/component.rb', line 162

def description
  @description
end

#emojiEmoji? (readonly)

Returns the emoji of the option, or nil.

Returns:

  • (Emoji, nil)

    the emoji of the option, or nil.



165
166
167
# File 'lib/discordrb/data/component.rb', line 165

def emoji
  @emoji
end

#labelString (readonly)

Returns the label of the option.

Returns:

  • (String)

    the label of the option.



156
157
158
# File 'lib/discordrb/data/component.rb', line 156

def label
  @label
end

#valueString (readonly)

Returns the value of the option.

Returns:

  • (String)

    the value of the option.



159
160
161
# File 'lib/discordrb/data/component.rb', line 159

def value
  @value
end