dpp::thread_member
dpp::json_interface< thread_member >
thread.h
struct friend struct json_interface< thread_member > json_interface< thread_member > dpp::thread_member::json_interface< thread_member > json_interface< thread_member >
uint32_t uint32_t dpp::thread_member::flags flags dpp::thread_member::flags = 0

Any user-thread settings, currently only used for notifications.

time_t time_t dpp::thread_member::joined joined dpp::thread_member::joined = 0

The time when user last joined the thread.

snowflake snowflake dpp::thread_member::thread_id thread_id dpp::thread_member::thread_id = {}

ID of the thread member is part of.

snowflake snowflake dpp::thread_member::user_id user_id dpp::thread_member::user_id = {}

ID of the member.

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

Read struct values from a json object.

j

json to read values from

A reference to self

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

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

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< thread_member >::to_json (bool with_id=false) const to_json dpp::json_interface< thread_member >::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 membership of a user with a thread

dpp::json_interface< T >
dpp::json_interface< thread_member >
< thread_member >
dpp::thread_member
dpp::json_interface< T >
dpp::json_interface< thread_member >
< thread_member >
dpp::snowflake
value
dpp::thread_member
thread_id
user_id
joined
flags
time_t
uint32_t
uint64_t
- dpp::thread_member
  build_json
- dpp::thread_member
  fill_from_json
- dpp::thread_member
  fill_from_json_impl
- dpp::thread_member
  flags
- dpp::thread_member
  joined
- dpp::thread_member
  json_interface< thread_member >
- dpp::thread_member
  thread_id
- dpp::thread_member
  to_json
- dpp::thread_member
  user_id