Class: Discorb::Message::Sticker
- Inherits:
 - 
      Object
      
        
- Object
 - Discorb::Message::Sticker
 
 
- Defined in:
 - lib/discorb/message_meta.rb
 
Overview
Represents a sticker.
Instance Attribute Summary collapse
- 
  
    
      #format -> Symbol 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The sticker format.
 - 
  
    
      #id -> Discorb::Snowflake 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The sticker ID.
 - 
  
    
      #name -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The sticker name.
 
Instance Method Summary collapse
- 
  
    
      #initialize(data) -> Sticker 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Sticker.
 - #inspect -> Object
 
Constructor Details
Instance Attribute Details
#format -> Symbol (readonly)
Returns The sticker format.
      105 106 107  | 
    
      # File 'lib/discorb/message_meta.rb', line 105 def format @format end  | 
  
#id -> Discorb::Snowflake (readonly)
Returns The sticker ID.
      101 102 103  | 
    
      # File 'lib/discorb/message_meta.rb', line 101 def id @id end  | 
  
#name -> String (readonly)
Returns The sticker name.
      103 104 105  | 
    
      # File 'lib/discorb/message_meta.rb', line 103 def name @name end  | 
  
Instance Method Details
#inspect -> Object
      113 114 115  | 
    
      # File 'lib/discorb/message_meta.rb', line 113 def inspect "#<#{self.class.name} #{@id}: #{@name} format=#{@format}>" end  |