From cd97c554651a4940131eec5e694632dc0d084928 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 14 May 2021 02:44:07 -0400 Subject: fix potential crash when displaying audit log --- discord/auditlog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/auditlog.cpp') diff --git a/discord/auditlog.cpp b/discord/auditlog.cpp index 5f3cde5..bfada39 100644 --- a/discord/auditlog.cpp +++ b/discord/auditlog.cpp @@ -20,7 +20,7 @@ void from_json(const nlohmann::json &j, AuditLogOptions &m) { void from_json(const nlohmann::json &j, AuditLogEntry &m) { JS_N("target_id", m.TargetID); JS_O("changes", m.Changes); - JS_D("user_id", m.UserID); + JS_N("user_id", m.UserID); JS_D("id", m.ID); JS_D("action_type", m.Type); JS_O("options", m.Options); -- cgit v1.2.3