From 4b637b6ff20784ffde41c521be0fd7199f4a5a9b Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 29 Aug 2020 16:38:52 -0400 Subject: crash fixes --- discord/objects.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index db7927e..c56b766 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -101,7 +101,7 @@ struct UserData { bool IsVerified = false; // opt std::string Email; // opt, null int Flags = 0; // opt - int PremiumType = 0; // opt + int PremiumType = 0; // opt, null (docs wrong) int PublicFlags = 0; // opt // undocumented (opt) @@ -119,7 +119,7 @@ struct ChannelData { Snowflake GuildID; // opt int Position = -1; // opt // std::vector PermissionOverwrites; // opt - std::string Name; // opt + std::string Name; // opt, null (null for dm's) std::string Topic; // opt, null bool IsNSFW = false; // opt Snowflake LastMessageID; // opt, null -- cgit v1.2.3