D++ (DPP)
C++ Discord API Bot Library
|
represents membership of a user with a thread More...
Public Member Functions | |
template<typename U = T, typename = decltype(std::declval<U&>().fill_from_json_impl(std::declval<nlohmann::json*>()))> | |
T & | fill_from_json (nlohmann::json *j) |
Convert object from nlohmann::json. More... | |
template<typename U = T, typename = decltype(std::declval<U&>().to_json_impl(bool{}))> | |
auto | to_json (bool with_id=false) const |
Convert object to nlohmann::json. More... | |
template<typename U = T, typename = decltype(std::declval<U&>().to_json_impl(bool{}))> | |
std::string | build_json (bool with_id=false) const |
Convert object to json string. More... | |
Public Attributes | |
snowflake | thread_id = {} |
ID of the thread member is part of. More... | |
snowflake | user_id = {} |
ID of the member. More... | |
time_t | joined = 0 |
The time when user last joined the thread. More... | |
uint32_t | flags = 0 |
Any user-thread settings, currently only used for notifications. More... | |
Protected Member Functions | |
thread_member & | fill_from_json_impl (nlohmann::json *j) |
Read struct values from a json object. More... | |
Friends | |
struct | json_interface< thread_member > |
represents membership of a user with a thread
|
inlineinherited |
Convert object to json string.
with_id | Whether to include the ID or not |
|
inlineinherited |
Convert object from nlohmann::json.
j | nlohmann::json object |
|
protected |
Read struct values from a json object.
j | json to read values from |
|
inlineinherited |
Convert object to nlohmann::json.
with_id | Whether to include the ID or not |
|
friend |
uint32_t dpp::thread_member::flags = 0 |
Any user-thread settings, currently only used for notifications.
time_t dpp::thread_member::joined = 0 |
The time when user last joined the thread.
snowflake dpp::thread_member::thread_id = {} |
ID of the thread member is part of.
snowflake dpp::thread_member::user_id = {} |
ID of the member.