class Discorb::MessageComponentInteraction::SelectMenu

Represents a select menu interaction.

Attributes

custom_id[R]

@return [String] The custom id of the select menu.

values[R]

@return [Array<String>] The selected options.

Public Instance Methods

value() click to toggle source

@!attribute [r] value

@return [String] The first selected value.
# File lib/discorb/interaction.rb, line 438
def value
  @values[0]
end

Private Instance Methods

_set_data(data) click to toggle source
# File lib/discorb/interaction.rb, line 444
def _set_data(data)
  @custom_id = data[:custom_id]
  @values = data[:values]
end