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>
Public Member Functions | |
sticker_pack () | |
Construct a new sticker pack object. More... | |
sticker_pack & | fill_from_json (nlohmann::json *j) |
std::string | build_json (bool with_id=true) const |
double | get_creation_time () const |
Get the creation time of this object according to Discord. More... | |
Public Attributes | |
std::map< snowflake, sticker > | stickers |
the stickers in the pack More... | |
std::string | name |
name of the sticker pack More... | |
snowflake | sku_id |
id of the pack's SKU 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 | banner_asset_id |
id of the sticker pack's banner image 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 relavent to us as useful metadata. 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.
std::string dpp::sticker_pack::build_json | ( | bool | with_id = true | ) | const |
Build JSON from this object.
with_id | True if the ID is to be set in the JSON structure |
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.
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 relavent 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