D++ (DPP)
C++ Discord API Bot Library
|
An individual audit log entry. More...
#include <auditlog.h>
Public Member Functions | |
audit_entry () | |
virtual | ~audit_entry ()=default |
audit_entry & | fill_from_json (nlohmann::json *j) |
virtual std::string | build_json (bool with_id=false) const |
Build JSON string from the object. More... | |
Public Attributes | |
snowflake | id |
id of the entry More... | |
snowflake | target_id |
std::vector< audit_change > | changes |
Optional: changes made to the target_id. More... | |
snowflake | user_id |
the user or app that made the changes (may be empty) More... | |
audit_type | type |
type of action that occurred More... | |
std::optional< audit_extra > | extra |
Optional: additional info for certain action types. More... | |
std::string | reason |
Optional: the reason for the change (1-512 characters) More... | |
An individual audit log entry.
dpp::audit_entry::audit_entry | ( | ) |
Constructor
|
virtualdefault |
Destructor
|
inlinevirtualinherited |
Build JSON string from the object.
with_id | Include the ID in the JSON |
audit_entry & dpp::audit_entry::fill_from_json | ( | nlohmann::json * | j | ) |
Read class values from json object
j | A json object to read from |
std::vector<audit_change> dpp::audit_entry::changes |
Optional: changes made to the target_id.
std::optional<audit_extra> dpp::audit_entry::extra |
Optional: additional info for certain action types.
snowflake dpp::audit_entry::id |
id of the entry
std::string dpp::audit_entry::reason |
Optional: the reason for the change (1-512 characters)
snowflake dpp::audit_entry::target_id |
ID of the affected entity (webhook, user, role, etc.) (may be empty)
audit_type dpp::audit_entry::type |
type of action that occurred
snowflake dpp::audit_entry::user_id |
the user or app that made the changes (may be empty)