Class: Discorb::ModalInteraction
- Inherits:
- 
      Interaction
      
        - Object
- DiscordModel
- Interaction
- Discorb::ModalInteraction
 
- Includes:
- Interaction::SourceResponder
- Defined in:
- lib/discorb/interaction/modal.rb
Overview
Represents a modal interaction.
Instance Attribute Summary collapse
- 
  
    
      #contents -> {String => String} 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The contents of the modal. 
- 
  
    
      #custom_id -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The custom id of the modal. 
Attributes inherited from Interaction
#application_id, #guild_locale, #id, #locale, #token, #type, #user, #version
Method Summary
Methods included from Interaction::SourceResponder
Methods inherited from Interaction
Methods inherited from DiscordModel
Instance Attribute Details
#contents -> {String => String} (readonly)
Returns The contents of the modal.
| 17 18 19 | # File 'lib/discorb/interaction/modal.rb', line 17 def contents @contents end | 
#custom_id -> String (readonly)
Returns The custom id of the modal.
| 15 16 17 | # File 'lib/discorb/interaction/modal.rb', line 15 def custom_id @custom_id end |