Class: Discorb::Application
- Inherits:
 - 
      DiscordModel
      
        
- Object
 - DiscordModel
 - Discorb::Application
 
 
- Defined in:
 - lib/discorb/application.rb
 
Overview
Represents a Discord application.
Defined Under Namespace
Classes: Team
Instance Attribute Summary collapse
- 
  
    
      #bot_public -> Boolean 
    
    
      (also: #bot_public?)
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Whether the application's bot is public.
 - 
  
    
      #bot_require_code_grant -> Boolean 
    
    
      (also: #bot_require_code_grant?)
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Whether the application's bot requires a code grant.
 - 
  
    
      #description -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's description.
 - 
  
    
      #icon -> Discorb::Asset 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's icon.
 - 
  
    
      #id -> Discorb::Snowflake 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's ID.
 - 
  
    
      #name -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's name.
 - 
  
    
      #owner -> Discorb::User 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's owner.
 - 
  
    
      #summary -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's summary.
 - 
  
    
      #team -> Discorb::Application::Team 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's team.
 - 
  
    
      #verify_key -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The application's public key.
 
Instance Method Summary collapse
Methods inherited from DiscordModel
Instance Attribute Details
#bot_public -> Boolean (readonly) Also known as: bot_public?
Returns Whether the application's bot is public.
      25 26 27  | 
    
      # File 'lib/discorb/application.rb', line 25 def bot_public @bot_public end  | 
  
#bot_require_code_grant -> Boolean (readonly) Also known as: bot_require_code_grant?
Returns Whether the application's bot requires a code grant.
      28 29 30  | 
    
      # File 'lib/discorb/application.rb', line 28 def bot_require_code_grant @bot_require_code_grant end  | 
  
#description -> String (readonly)
Returns The application's description.
      15 16 17  | 
    
      # File 'lib/discorb/application.rb', line 15 def description @description end  | 
  
#icon -> Discorb::Asset (readonly)
Returns The application's icon.
      13 14 15  | 
    
      # File 'lib/discorb/application.rb', line 13 def icon @icon end  | 
  
#id -> Discorb::Snowflake (readonly)
Returns The application's ID.
      9 10 11  | 
    
      # File 'lib/discorb/application.rb', line 9 def id @id end  | 
  
#name -> String (readonly)
Returns The application's name.
      11 12 13  | 
    
      # File 'lib/discorb/application.rb', line 11 def name @name end  | 
  
#owner -> Discorb::User (readonly)
Returns The application's owner.
      21 22 23  | 
    
      # File 'lib/discorb/application.rb', line 21 def owner @owner end  | 
  
#summary -> String (readonly)
Returns The application's summary.
      17 18 19  | 
    
      # File 'lib/discorb/application.rb', line 17 def summary @summary end  | 
  
#team -> Discorb::Application::Team (readonly)
Returns The application's team.
      23 24 25  | 
    
      # File 'lib/discorb/application.rb', line 23 def team @team end  | 
  
#verify_key -> String (readonly)
Returns The application's public key.
      19 20 21  | 
    
      # File 'lib/discorb/application.rb', line 19 def verify_key @verify_key end  | 
  
Instance Method Details
#inspect -> Object
      47 48 49  | 
    
      # File 'lib/discorb/application.rb', line 47 def inspect "#<#{self.class} id=#{@id}>" end  |