dpp::audit_entry
dpp::json_interface< audit_entry >
auditlog.h
struct friend struct json_interface< audit_entry > json_interface< audit_entry > dpp::audit_entry::json_interface< audit_entry > json_interface< audit_entry >
std::vector< audit_change > std::vector<audit_change> dpp::audit_entry::changes changes dpp::audit_entry::changes

Optional: changes made to the target_id.

std::optional< audit_extra > std::optional<audit_extra> dpp::audit_entry::extra extra dpp::audit_entry::extra

Optional: additional info for certain action types.

snowflake snowflake dpp::audit_entry::id id dpp::audit_entry::id

ID of the entry.

std::string std::string dpp::audit_entry::reason reason dpp::audit_entry::reason

Optional: the reason for the change (1-512 characters).

snowflake snowflake dpp::audit_entry::target_id target_id dpp::audit_entry::target_id

ID of the affected entity (webhook, user, role, etc.) (may be empty)

For dpp::audit_type::aut_appcommand_permission_update updates, it's the command ID or the app ID

audit_type audit_type dpp::audit_entry::type type dpp::audit_entry::type

Type of action that occurred.

snowflake snowflake dpp::audit_entry::user_id user_id dpp::audit_entry::user_id

The user or app that made the changes (may be empty).

audit_entry & audit_entry & dpp::audit_entry::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::audit_entry::fill_from_json_impl nlohmann::json * j

Read class values from json object j

A json object to read from

A reference to self

dpp::audit_entry::audit_entry
()
audit_entry
dpp::audit_entry::audit_entry

Constructor

virtual dpp::audit_entry::~audit_entry
()=default
~audit_entry
dpp::audit_entry::~audit_entry

Destructor

std::string std::string dpp::json_interface< audit_entry >::build_json (bool with_id=false) const build_json dpp::json_interface< audit_entry >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

audit_entry & audit_entry & dpp::json_interface< audit_entry >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< audit_entry >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< audit_entry >::to_json (bool with_id=false) const to_json dpp::json_interface< audit_entry >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

An individual audit log entry.

dpp::audit_entry
dpp::json_interface< T >
dpp::json_interface< audit_entry >
< audit_entry >
T
audit_type
dpp::audit_change
key
new_value
old_value
dpp::audit_entry
id
target_id
user_id
changes
type
extra
reason
dpp::json_interface< T >
dpp::json_interface< audit_entry >
< audit_entry >
dpp::snowflake
value
std::basic_string< Char >
optional< dpp::audit_extra >
std::string
std::vector< T >
elements
std::vector< dpp::audit_change >
elements
< dpp::audit_change >
uint64_t
- dpp::audit_entry
  audit_entry
- dpp::audit_entry
  build_json
- dpp::audit_entry
  changes
- dpp::audit_entry
  extra
- dpp::audit_entry
  fill_from_json
- dpp::audit_entry
  fill_from_json_impl
- dpp::audit_entry
  id
- dpp::audit_entry
  json_interface< audit_entry >
- dpp::audit_entry
  reason
- dpp::audit_entry
  target_id
- dpp::audit_entry
  to_json
- dpp::audit_entry
  type
- dpp::audit_entry
  user_id
- dpp::audit_entry
  ~audit_entry