Class: Discorb::Sticker
- Inherits:
 - 
      DiscordModel
      
        
- Object
 - DiscordModel
 - Discorb::Sticker
 
 
- Defined in:
 - lib/discorb/sticker.rb
 
Overview
Represents a sticker.
Direct Known Subclasses
Defined Under Namespace
Classes: GuildSticker, Pack
Instance Attribute Summary collapse
- 
  
    
      #available -> Boolean 
    
    
      (also: #available?)
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Whether the sticker is available.
 - 
  
    
      #description -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The URL of the sticker.
 - 
  
    
      #format -> :png, ... 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The format of the sticker.
 - 
  
    
      #guild_id -> Discorb::Snowflake 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The ID of the guild the sticker is in.
 - 
  
    
      #id -> Discorb::Snowflake 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The ID of the sticker.
 - 
  
    
      #name -> String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The name of the sticker.
 - 
  
    
      #pack_id -> Discorb::Sticker 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The ID of the sticker pack.
 - 
  
    
      #sort_value -> Integer 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The sort value of the sticker.
 - 
  
    
      #tags -> Array<String> 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The tags of the sticker.
 - 
  
    
      #type -> :official, :guild 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The type of sticker.
 - 
  
    
      #user -> Discorb::User 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The user who created the sticker.
 
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#available -> Boolean (readonly) Also known as: available?
Returns Whether the sticker is available.
      29 30 31  | 
    
      # File 'lib/discorb/sticker.rb', line 29 def available @available end  | 
  
#description -> String (readonly)
Returns The URL of the sticker.
      19 20 21  | 
    
      # File 'lib/discorb/sticker.rb', line 19 def description @description end  | 
  
#format -> :png, ... (readonly)
Returns The format of the sticker.
      17 18 19  | 
    
      # File 'lib/discorb/sticker.rb', line 17 def format @format end  | 
  
#guild_id -> Discorb::Snowflake (readonly)
Returns The ID of the guild the sticker is in.
      25 26 27  | 
    
      # File 'lib/discorb/sticker.rb', line 25 def guild_id @guild_id end  | 
  
#id -> Discorb::Snowflake (readonly)
Returns The ID of the sticker.
      9 10 11  | 
    
      # File 'lib/discorb/sticker.rb', line 9 def id @id end  | 
  
#name -> String (readonly)
Returns The name of the sticker.
      11 12 13  | 
    
      # File 'lib/discorb/sticker.rb', line 11 def name @name end  | 
  
#pack_id -> Discorb::Sticker (readonly)
Returns The ID of the sticker pack.
      21 22 23  | 
    
      # File 'lib/discorb/sticker.rb', line 21 def pack_id @pack_id end  | 
  
#sort_value -> Integer (readonly)
Returns The sort value of the sticker.
      23 24 25  | 
    
      # File 'lib/discorb/sticker.rb', line 23 def sort_value @sort_value end  | 
  
#tags -> Array<String> (readonly)
Returns The tags of the sticker.
      13 14 15  | 
    
      # File 'lib/discorb/sticker.rb', line 13 def @tags end  | 
  
#type -> :official, :guild (readonly)
Returns The type of sticker.
      15 16 17  | 
    
      # File 'lib/discorb/sticker.rb', line 15 def type @type end  | 
  
#user -> Discorb::User (readonly)
Returns The user who created the sticker.
      27 28 29  | 
    
      # File 'lib/discorb/sticker.rb', line 27 def user @user end  |