![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Represents an attachment in a dpp::message. More...
#include <message.h>
Collaboration diagram for dpp::attachment:Public Member Functions | |
| attachment () | |
| Constructs a new attachment object. More... | |
| attachment (nlohmann::json *j) | |
| Constructs a new attachment object from a JSON object. More... | |
| ~attachment ()=default | |
| Destructs the attachment object. More... | |
Public Attributes | |
| std::string | content_type |
| bool | ephemeral |
| std::string | filename |
| uint32_t | height |
| snowflake | id |
| std::string | proxy_url |
| uint32_t | size |
| std::string | url |
| uint32_t | width |
Represents an attachment in a dpp::message.
| dpp::attachment::attachment | ( | ) |
Constructs a new attachment object.
| dpp::attachment::attachment | ( | nlohmann::json * | j | ) |
Constructs a new attachment object from a JSON object.
| j | JSON to read information from |
|
default |
Destructs the attachment object.
| std::string dpp::attachment::content_type |
MIME type of the attachment, if applicable
| bool dpp::attachment::ephemeral |
Whether this attachment is ephemeral, if applicable
| std::string dpp::attachment::filename |
File name of the attachment
| uint32_t dpp::attachment::height |
Height of the attachment, if applicable
| snowflake dpp::attachment::id |
ID of attachment
| std::string dpp::attachment::proxy_url |
Proxied URL which points to the attachment
| uint32_t dpp::attachment::size |
Size of the attachment in bytes
| std::string dpp::attachment::url |
URL which points to the attachment
| uint32_t dpp::attachment::width |
Width of the attachment, if applicable