![]() |
D++ (DPP)
C++ Discord API Bot Library
|
represents membership of a user with a thread More...
#include <channel.h>
Public Member Functions | |
thread_member & | fill_from_json (nlohmann::json *j) |
Convert object from nlohmann::json. More... | |
auto | to_json (bool with_id=false) const |
Convert object to nlohmann::json. More... | |
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 |
The time when user last joined the thread. More... | |
uint32_t | flags |
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 |
Any user-thread settings, currently only used for notifications.
time_t dpp::thread_member::joined |
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.