Class: Discorb::MessageComponentInteraction::SelectMenu
- Inherits:
 - 
      Discorb::MessageComponentInteraction
      
        
- Object
 - DiscordModel
 - Interaction
 - Discorb::MessageComponentInteraction
 - Discorb::MessageComponentInteraction::SelectMenu
 
 
- Defined in:
 - lib/discorb/interaction.rb
 
Overview
Represents a select menu interaction.
Instance Attribute Summary collapse
- 
  
    
      #custom_id -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The custom id of the select menu.
 - #value -> Object readonly
 - 
  
    
      #values -> Array<String> 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The selected options.
 
Attributes inherited from Interaction
#application_id, #id, #member, #token, #type, #user, #version
Method Summary
Methods included from Interaction::UpdateResponse
Methods included from Interaction::SourceResponse
Methods inherited from Interaction
#channel, #guild, #inspect, #target
Methods inherited from DiscordModel
Instance Attribute Details
#custom_id -> String (readonly)
Returns The custom id of the select menu.
      314 315 316  | 
    
      # File 'lib/discorb/interaction.rb', line 314 def custom_id @custom_id end  | 
  
#value -> Object (readonly)
      321 322 323  | 
    
      # File 'lib/discorb/interaction.rb', line 321 def value @values[0] end  | 
  
#values -> Array<String> (readonly)
Returns The selected options.
      316 317 318  | 
    
      # File 'lib/discorb/interaction.rb', line 316 def values @values end  |