![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Represents a pinned message. More...
#include <message.h>
Inheritance diagram for dpp::message_pin:
Collaboration diagram for dpp::message_pin:Public Member Functions | |
| message_pin () | |
| message_pin (const message_pin &msg_pin)=default | |
| message_pin (message_pin &&msg_pin)=default | |
| message_pin (time_t _pinned_at, const message &_pinned_message) | |
| ~message_pin ()=default | |
| Destroy the message_pin object. More... | |
| std::string | build_json (bool with_id=false) const |
| Convert object to json string. More... | |
| message_pin & | fill_from_json (nlohmann::json *j) |
| Convert object from nlohmann::json. More... | |
| message_pin & | operator= (const message_pin &msg_pin)=default |
| Copy a message_pin object. More... | |
| message_pin & | operator= (message_pin &&msg_pin)=default |
| Move a message_pin object. More... | |
| auto | to_json (bool with_id=false) const |
| Convert object to nlohmann::json. More... | |
Public Attributes | |
| time_t | pinned_at |
| The time the message was pinned. More... | |
| message | pinned_message |
| The pinned message. More... | |
Protected Member Functions | |
| message_pin & | fill_from_json_impl (nlohmann::json *j) |
| Fill in object from json data. More... | |
| virtual json | to_json () const |
Friends | |
| struct | json_interface< message_pin > |
Represents a pinned message.
| dpp::message_pin::message_pin | ( | ) |
| dpp::message_pin::message_pin | ( | time_t | _pinned_at, |
| const message & | _pinned_message | ||
| ) |
|
default |
|
default |
|
default |
Destroy the message_pin object.
|
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 |
|
default |
Copy a message_pin object.
| msg_pin | message_pin to copy |
|
default |
Move a message_pin object.
| msg_pin | message_pin to move |
|
protectedvirtual |
Build JSON from this object.
|
inlineinherited |
Convert object to nlohmann::json.
| with_id | Whether to include the ID or not |
|
friend |
| time_t dpp::message_pin::pinned_at |
The time the message was pinned.
| message dpp::message_pin::pinned_message |
The pinned message.