diff options
author | Dylam De La Torre <DyXel04@gmail.com> | 2021-11-23 05:21:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 04:21:56 +0000 |
commit | a51a54bc5979a2491f152abc47ad54e6b63f27c8 (patch) | |
tree | ce67092b2f6df366033a65a6111e4650866766b2 /discord/auditlog.cpp | |
parent | d88079000a79e6bcbe51c5a2868d57b303b5fcb6 (diff) | |
download | abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.tar.gz abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.zip |
Restructure source and resource files (#46)
importantly, res is now res/res and css is now res/css
Diffstat (limited to 'discord/auditlog.cpp')
-rw-r--r-- | discord/auditlog.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/discord/auditlog.cpp b/discord/auditlog.cpp deleted file mode 100644 index bfada39..0000000 --- a/discord/auditlog.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "auditlog.hpp" - -void from_json(const nlohmann::json &j, AuditLogChange &m) { - JS_D("key", m.Key); - JS_O("old_value", m.OldValue); - JS_O("new_value", m.NewValue); -} - -void from_json(const nlohmann::json &j, AuditLogOptions &m) { - JS_O("delete_member_days", m.DeleteMemberDays); - JS_O("members_removed", m.MembersRemoved); - JS_O("channel_id", m.ChannelID); - JS_O("message_id", m.MessageID); - JS_O("count", m.Count); - JS_O("id", m.ID); - JS_O("type", m.Type); - JS_O("role_name", m.RoleName); -} - -void from_json(const nlohmann::json &j, AuditLogEntry &m) { - JS_N("target_id", m.TargetID); - JS_O("changes", m.Changes); - JS_N("user_id", m.UserID); - JS_D("id", m.ID); - JS_D("action_type", m.Type); - JS_O("options", m.Options); - JS_O("reason", m.Reason); -} - -void from_json(const nlohmann::json &j, AuditLogData &m) { - JS_D("audit_log_entries", m.Entries); - JS_D("users", m.Users); - JS_D("webhooks", m.Webhooks); -} |