From a51a54bc5979a2491f152abc47ad54e6b63f27c8 Mon Sep 17 00:00:00 2001 From: Dylam De La Torre Date: Tue, 23 Nov 2021 05:21:56 +0100 Subject: Restructure source and resource files (#46) importantly, res is now res/res and css is now res/css --- discord/auditlog.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 discord/auditlog.cpp (limited to 'discord/auditlog.cpp') 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); -} -- cgit v1.2.3