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.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/auditlog.hpp') diff --git a/discord/auditlog.hpp b/discord/auditlog.hpp index c6ce0cc..8b8ae34 100644 --- a/discord/auditlog.hpp +++ b/discord/auditlog.hpp @@ -66,7 +66,7 @@ struct AuditLogOptions { struct AuditLogEntry { Snowflake ID; std::string TargetID; // null - Snowflake UserID; + std::optional UserID; AuditLogActionType Type; std::optional Reason; std::optional> Changes; -- cgit v1.2.3