Class: Discorb::ApplicationCommand::Command::SlashCommand
- Inherits:
 - 
      Discorb::ApplicationCommand::Command
      
        
- Object
 - DiscordModel
 - Discorb::ApplicationCommand::Command
 - Discorb::ApplicationCommand::Command::SlashCommand
 
 
- Defined in:
 - lib/discorb/app_command.rb
 
Overview
Represents the slash command.
Instance Attribute Summary collapse
- 
  
    
      #description -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The description of the command.
 - 
  
    
      #options -> Hash{String => Hash} 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The options of the command.
 
Attributes inherited from Discorb::ApplicationCommand::Command
#block, #guild_ids, #id_map, #name, #type, #type_raw
Instance Method Summary collapse
- 
  
    
      #to_s -> String 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the commands name.
 
Methods inherited from DiscordModel
Instance Attribute Details
#description -> String (readonly)
Returns The description of the command.
      185 186 187  | 
    
      # File 'lib/discorb/app_command.rb', line 185 def description @description end  | 
  
#options -> Hash{String => Hash} (readonly)
Returns The options of the command.
      187 188 189  | 
    
      # File 'lib/discorb/app_command.rb', line 187 def @options end  | 
  
Instance Method Details
#to_s -> String
Returns the commands name.
      204 205 206  | 
    
      # File 'lib/discorb/app_command.rb', line 204 def to_s (@parent + " " + @name).strip end  |