Class: Discorb::ApplicationCommand::Command Abstract
- Inherits:
 - 
      DiscordModel
      
        
- Object
 - DiscordModel
 - Discorb::ApplicationCommand::Command
 
 
- Defined in:
 - lib/discorb/app_command/command.rb
 
Overview
  This class is abstract.
  
Represents a application command.
Direct Known Subclasses
Defined Under Namespace
Classes: ChatInputCommand, GroupCommand, SubcommandGroup
Instance Attribute Summary collapse
- 
  
    
      #block -> Proc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The block of the command.
 - 
  
    
      #default_permission -> Discorb::Permission 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The default permissions for this command.
 - 
  
    
      #dm_permission -> Boolean 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Whether the command is enabled in DMs.
 - 
  
    
      #guild_ids -> Array<#to_s> 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The guild ids that the command is enabled in.
 - 
  
    
      #name -> Hash{String => String} 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The name of the command.
 - 
  
    
      #type -> :chat_input, ... 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The type of the command.
 - 
  
    
      #type_raw -> Integer 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The raw type of the command.
 
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#block -> Proc (readonly)
Returns The block of the command.
      15 16 17  | 
    
      # File 'lib/discorb/app_command/command.rb', line 15 def block @block end  | 
  
#default_permission -> Discorb::Permission (readonly)
Returns The default permissions for this command.
      21 22 23  | 
    
      # File 'lib/discorb/app_command/command.rb', line 21 def @default_permission end  | 
  
#dm_permission -> Boolean (readonly)
Returns Whether the command is enabled in DMs.
      23 24 25  | 
    
      # File 'lib/discorb/app_command/command.rb', line 23 def @dm_permission end  | 
  
#guild_ids -> Array<#to_s> (readonly)
Returns The guild ids that the command is enabled in.
      13 14 15  | 
    
      # File 'lib/discorb/app_command/command.rb', line 13 def guild_ids @guild_ids end  | 
  
#name -> Hash{String => String} (readonly)
Returns The name of the command.
      11 12 13  | 
    
      # File 'lib/discorb/app_command/command.rb', line 11 def name @name end  | 
  
#type -> :chat_input, ... (readonly)
Returns The type of the command.
      17 18 19  | 
    
      # File 'lib/discorb/app_command/command.rb', line 17 def type @type end  | 
  
#type_raw -> Integer (readonly)
Returns The raw type of the command.
      19 20 21  | 
    
      # File 'lib/discorb/app_command/command.rb', line 19 def type_raw @type_raw end  |