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 |
Public Attributes | |
snowflake | id |
id of the sticker pack More... | |
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... | |
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 |
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
snowflake dpp::sticker_pack::id |
id of the sticker pack
std::string dpp::sticker_pack::name |
name of the sticker pack
snowflake dpp::sticker_pack::sku_id |
id of the pack's SKU