dpp::sticker_pack
dpp::managed
dpp::json_interface< sticker_pack >
message.h
struct friend struct json_interface< sticker_pack > json_interface< sticker_pack > dpp::sticker_pack::json_interface< sticker_pack > json_interface< sticker_pack >
snowflake snowflake dpp::sticker_pack::banner_asset_id banner_asset_id dpp::sticker_pack::banner_asset_id {}

ID of the sticker pack's banner image.

snowflake snowflake dpp::sticker_pack::cover_sticker_id cover_sticker_id dpp::sticker_pack::cover_sticker_id {0}

Optional: ID of a sticker in the pack which is shown as the pack's icon.

std::string std::string dpp::sticker_pack::description description dpp::sticker_pack::description {}

Description of the sticker pack.

snowflake snowflake dpp::managed::id id dpp::managed::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.

std::string std::string dpp::sticker_pack::name name dpp::sticker_pack::name {}

Name of the sticker pack.

snowflake snowflake dpp::sticker_pack::sku_id sku_id dpp::sticker_pack::sku_id {0}

ID of the pack's SKU.

std::map< snowflake, sticker > std::map<snowflake, sticker> dpp::sticker_pack::stickers stickers dpp::sticker_pack::stickers {}

The stickers in the pack.

sticker_pack & sticker_pack & dpp::sticker_pack::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::sticker_pack::fill_from_json_impl nlohmann::json * j

Read class values from json object j

A json object to read from

A reference to self

json virtual json dpp::sticker_pack::to_json_impl (bool with_id=true) const to_json_impl dpp::sticker_pack::to_json_impl bool with_id true

Build JSON from this object. with_id

True if the ID is to be set in the JSON structure

The JSON of the invite

std::string std::string dpp::json_interface< sticker_pack >::build_json (bool with_id=false) const build_json dpp::json_interface< sticker_pack >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

sticker_pack & sticker_pack & dpp::json_interface< sticker_pack >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< sticker_pack >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

double double dpp::managed::get_creation_time () const noexcept get_creation_time dpp::managed::get_creation_time

Get the creation time of this object according to Discord.

double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

bool bool dpp::managed::operator!= (const managed &other) const noexcept operator!= dpp::managed::operator!= const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are not the same id

false objects are the same id

bool bool dpp::managed::operator== (const managed &other) const noexcept operator== dpp::managed::operator== const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are the same id

false objects are not the same id

auto auto dpp::json_interface< sticker_pack >::to_json (bool with_id=false) const to_json dpp::json_interface< sticker_pack >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

Represents a sticker pack (the built in groups of stickers that all nitro users get to use).

dpp::json_interface< T >
dpp::json_interface< sticker_pack >
< sticker_pack >
dpp::managed
dpp::sticker_pack
K
T
bool
dpp::json_interface< T >
dpp::json_interface< sticker >
< sticker >
dpp::json_interface< sticker_pack >
< sticker_pack >
dpp::json_interface< user >
< user >
dpp::managed
id
dpp::snowflake
value
dpp::sticker
guild_id
pack_id
asset
description
filecontent
filename
name
tags
type
format_type
available
sticker_user
sort_value
dpp::sticker_pack
stickers
description
name
banner_asset_id
cover_sticker_id
sku_id
dpp::user
global_name
username
avatar
avatar_decoration
primary_guild
flags
discriminator
refcount
dpp::utility::iconhash
first
second
dpp::utility::primaryguild
id
enabled
tag
badge
std::basic_string< Char >
std::map< K, T >
keys
elements
std::map< dpp::snowflake, dpp::sticker >
keys
elements
< dpp::snowflake, dpp::sticker >
std::string
sticker_format
sticker_type
uint16_t
uint32_t
uint64_t
uint8_t
- dpp::sticker_pack
  banner_asset_id
- dpp::sticker_pack
  build_json
- dpp::sticker_pack
  cover_sticker_id
- dpp::sticker_pack
  description
- dpp::sticker_pack
  fill_from_json
- dpp::sticker_pack
  fill_from_json_impl
- dpp::sticker_pack
  get_creation_time
- dpp::sticker_pack
  id
- dpp::sticker_pack
  json_interface< sticker_pack >
- dpp::sticker_pack
  managed
- dpp::sticker_pack
  managed
- dpp::sticker_pack
  managed
- dpp::sticker_pack
  managed
- dpp::sticker_pack
  name
- dpp::sticker_pack
  operator!=
- dpp::sticker_pack
  operator=
- dpp::sticker_pack
  operator=
- dpp::sticker_pack
  operator==
- dpp::sticker_pack
  sku_id
- dpp::sticker_pack
  stickers
- dpp::sticker_pack
  to_json
- dpp::sticker_pack
  to_json_impl
- dpp::sticker_pack
  ~managed