![]()  | 
  
    D++ (DPP)
    
   C++ Discord API Bot Library 
   | 
 
Represents a sticker pack (the built in groups of stickers that all nitro users get to use) More...
#include <message.h>
 Inheritance diagram for dpp::sticker_pack:
 Collaboration diagram for dpp::sticker_pack:Public Member Functions | |
| sticker_pack () | |
| Construct a new sticker pack object.  More... | |
| virtual | ~sticker_pack ()=default | 
| virtual std::string | build_json (bool with_id=true) const | 
| sticker_pack & | fill_from_json (nlohmann::json *j) | 
| double | get_creation_time () const | 
| Get the creation time of this object according to Discord.  More... | |
| bool | operator!= (const managed &other) const noexcept | 
| Comparison operator for comparing two managed objects by id.  More... | |
| bool | operator== (const managed &other) const noexcept | 
| Comparison operator for comparing two managed objects by id.  More... | |
Public Attributes | |
| snowflake | banner_asset_id | 
| id of the sticker pack's banner image  More... | |
| snowflake | cover_sticker_id | 
| Optional: id of a sticker in the pack which is shown as the pack's icon.  More... | |
| std::string | description | 
| description of the sticker pack  More... | |
| snowflake | id | 
| Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.  More... | |
| std::string | name | 
| name of the sticker pack  More... | |
| snowflake | sku_id | 
| id of the pack's SKU  More... | |
| std::map< snowflake, sticker > | stickers | 
| the stickers in the pack  More... | |
Represents a sticker pack (the built in groups of stickers that all nitro users get to use)
| dpp::sticker_pack::sticker_pack | ( | ) | 
Construct a new sticker pack object.
      
  | 
  virtualdefault | 
      
  | 
  virtual | 
Build JSON from this object.
| with_id | True if the ID is to be set in the JSON structure | 
Reimplemented from dpp::json_interface< sticker_pack >.
| sticker_pack & dpp::sticker_pack::fill_from_json | ( | nlohmann::json * | j | ) | 
Read class values from json object
| j | A json object to read from | 
      
  | 
  inherited | 
Get the creation time of this object according to Discord.
      
  | 
  noexceptinherited | 
Comparison operator for comparing two managed objects by id.
| other | Other object to compare against | 
      
  | 
  noexceptinherited | 
Comparison operator for comparing two managed objects by id.
| other | Other object to compare against | 
| snowflake dpp::sticker_pack::banner_asset_id | 
id of the sticker pack's banner image
| snowflake dpp::sticker_pack::cover_sticker_id | 
Optional: id of a sticker in the pack which is shown as the pack's icon.
| std::string dpp::sticker_pack::description | 
description of the sticker pack
      
  | 
  inherited | 
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.
| std::string dpp::sticker_pack::name | 
name of the sticker pack
| snowflake dpp::sticker_pack::sku_id | 
id of the pack's SKU