diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-14 02:44:07 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-14 02:44:07 -0400 |
commit | cd97c554651a4940131eec5e694632dc0d084928 (patch) | |
tree | 94ec8b317029cd5fd43a7f6ff79953c9f99029d3 /discord/auditlog.hpp | |
parent | 09cb0b07bb9882a7442267fa40ac4918b444164b (diff) | |
download | abaddon-portaudio-cd97c554651a4940131eec5e694632dc0d084928.tar.gz abaddon-portaudio-cd97c554651a4940131eec5e694632dc0d084928.zip |
fix potential crash when displaying audit log
Diffstat (limited to 'discord/auditlog.hpp')
-rw-r--r-- | discord/auditlog.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Snowflake> UserID; AuditLogActionType Type; std::optional<std::string> Reason; std::optional<std::vector<AuditLogChange>> Changes; |