dpp::onboarding_prompt_option
dpp::managed
dpp::json_interface< onboarding_prompt_option >
guild.h
struct friend struct json_interface< onboarding_prompt_option > json_interface< onboarding_prompt_option > dpp::onboarding_prompt_option::json_interface< onboarding_prompt_option > json_interface< onboarding_prompt_option >
std::vector< snowflake > std::vector<snowflake> dpp::onboarding_prompt_option::channel_ids channel_ids dpp::onboarding_prompt_option::channel_ids

IDs for channels a member is added to when the option is selected.

std::string std::string dpp::onboarding_prompt_option::description description dpp::onboarding_prompt_option::description

Description of the option.

dpp::emoji dpp::emoji dpp::onboarding_prompt_option::emoji emoji dpp::onboarding_prompt_option::emoji

Emoji of the option.

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::vector< snowflake > std::vector<snowflake> dpp::onboarding_prompt_option::role_ids role_ids dpp::onboarding_prompt_option::role_ids

IDs for roles assigned to a member when the option is selected.

std::string std::string dpp::onboarding_prompt_option::title title dpp::onboarding_prompt_option::title

Title of the option.

onboarding_prompt_option & onboarding_prompt_option & dpp::onboarding_prompt_option::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::onboarding_prompt_option::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 json dpp::onboarding_prompt_option::to_json_impl (bool with_id=false) const to_json_impl dpp::onboarding_prompt_option::to_json_impl bool with_id false

Build the json for this object.

with_id

include the id in the JSON

json data

dpp::onboarding_prompt_option::onboarding_prompt_option
()
onboarding_prompt_option
dpp::onboarding_prompt_option::onboarding_prompt_option

Construct a new onboarding prompt option object.

virtual dpp::onboarding_prompt_option::~onboarding_prompt_option
()=default
~onboarding_prompt_option
dpp::onboarding_prompt_option::~onboarding_prompt_option

Destroy the onboarding prompt option object.

std::string std::string dpp::json_interface< onboarding_prompt_option >::build_json (bool with_id=false) const build_json dpp::json_interface< onboarding_prompt_option >::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

onboarding_prompt_option & onboarding_prompt_option & dpp::json_interface< onboarding_prompt_option >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< onboarding_prompt_option >::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

onboarding_prompt_option & onboarding_prompt_option & dpp::onboarding_prompt_option::set_description (const std::string &_description) set_description dpp::onboarding_prompt_option::set_description const std::string & _description

Set the description of this onboarding prompt option object.

_description

The description to set

Reference to self, so these method calls may be chained

onboarding_prompt_option & onboarding_prompt_option & dpp::onboarding_prompt_option::set_emoji (const dpp::emoji &_emoji) set_emoji dpp::onboarding_prompt_option::set_emoji const dpp::emoji & _emoji

Set the emoji of this onboarding prompt option object.

_emoji

The emoji to set

Reference to self, so these method calls may be chained

onboarding_prompt_option & onboarding_prompt_option & dpp::onboarding_prompt_option::set_title (const std::string &_title) set_title dpp::onboarding_prompt_option::set_title const std::string & _title

Set the title of this onboarding prompt option object.

_title

The title to set

Reference to self, so these method calls may be chained

auto auto dpp::json_interface< onboarding_prompt_option >::to_json (bool with_id=false) const to_json dpp::json_interface< onboarding_prompt_option >::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 an onboarding prompt option.

dpp::json_interface< T >
dpp::json_interface< onboarding_prompt_option >
< onboarding_prompt_option >
dpp::managed
dpp::onboarding_prompt_option
T
dpp::emoji
name
roles
user_id
image_data
flags
dpp::json_interface< T >
dpp::json_interface< emoji >
< emoji >
dpp::json_interface< onboarding_prompt_option >
< onboarding_prompt_option >
dpp::managed
id
dpp::onboarding_prompt_option
channel_ids
role_ids
emoji
description
title
dpp::snowflake
value
dpp::utility::image_data
data
size
type
image_type
std::basic_string< Char >
byte
std::string
std::unique_ptr< T >
ptr
std::unique_ptr< std::byte[]>
ptr
< std::byte[]>
std::vector< T >
elements
std::vector< dpp::snowflake >
elements
< dpp::snowflake >
uint32_t
uint64_t
uint8_t
- dpp::onboarding_prompt_option
  build_json
- dpp::onboarding_prompt_option
  channel_ids
- dpp::onboarding_prompt_option
  description
- dpp::onboarding_prompt_option
  emoji
- dpp::onboarding_prompt_option
  fill_from_json
- dpp::onboarding_prompt_option
  fill_from_json_impl
- dpp::onboarding_prompt_option
  get_creation_time
- dpp::onboarding_prompt_option
  id
- dpp::onboarding_prompt_option
  json_interface< onboarding_prompt_option >
- dpp::onboarding_prompt_option
  managed
- dpp::onboarding_prompt_option
  managed
- dpp::onboarding_prompt_option
  managed
- dpp::onboarding_prompt_option
  managed
- dpp::onboarding_prompt_option
  onboarding_prompt_option
- dpp::onboarding_prompt_option
  operator!=
- dpp::onboarding_prompt_option
  operator=
- dpp::onboarding_prompt_option
  operator=
- dpp::onboarding_prompt_option
  operator==
- dpp::onboarding_prompt_option
  role_ids
- dpp::onboarding_prompt_option
  set_description
- dpp::onboarding_prompt_option
  set_emoji
- dpp::onboarding_prompt_option
  set_title
- dpp::onboarding_prompt_option
  title
- dpp::onboarding_prompt_option
  to_json
- dpp::onboarding_prompt_option
  to_json_impl
- dpp::onboarding_prompt_option
  ~managed
- dpp::onboarding_prompt_option
  ~onboarding_prompt_option