From bd918e760692a80988e1ba12bffa366b453567d6 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 8 Dec 2020 20:59:41 -0500 Subject: disk cache guild --- discord/guild.hpp | 86 +++++++++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) (limited to 'discord/guild.hpp') diff --git a/discord/guild.hpp b/discord/guild.hpp index f0edf3f..d0863d5 100644 --- a/discord/guild.hpp +++ b/discord/guild.hpp @@ -10,53 +10,53 @@ // a bot is apparently only supposed to receive the `id` and `unavailable` as false // but user tokens seem to get the full objects (minus users) struct Guild { - Snowflake ID; // - std::string Name; // - std::string Icon; // null - std::string Splash; // null - std::string DiscoverySplash; // opt, null (docs wrong) - bool IsOwner = false; // opt - Snowflake OwnerID; // - int Permissions = 0; // opt - std::string PermissionsNew; // opt - std::string VoiceRegion; // opt - Snowflake AFKChannelID; // null - int AFKTimeout; // - bool IsEmbedEnabled = false; // opt, deprecated - Snowflake EmbedChannelID; // opt, null, deprecated - int VerificationLevel; // - int DefaultMessageNotifications; // - int ExplicitContentFilter; // - std::vector Roles; // - std::vector Emojis; // - std::vector Features; // - int MFALevel; // - Snowflake ApplicationID; // null - bool IsWidgetEnabled = false; // opt - Snowflake WidgetChannelID; // opt, null - Snowflake SystemChannelID; // null - int SystemChannelFlags; // - Snowflake RulesChannelID; // null - std::string JoinedAt; // opt* - bool IsLarge = false; // opt* - bool IsUnavailable = false; // opt* - int MemberCount = 0; // opt* + Snowflake ID; + std::string Name; + std::string Icon; // null + std::string Splash; // null + std::optional DiscoverySplash; // null + std::optional IsOwner; + Snowflake OwnerID; + std::optional Permissions; + std::optional PermissionsNew; + std::optional VoiceRegion; + Snowflake AFKChannelID; // null + int AFKTimeout; + std::optional IsEmbedEnabled; // deprecated + std::optional EmbedChannelID; // null, deprecated + int VerificationLevel; + int DefaultMessageNotifications; + int ExplicitContentFilter; + std::vector Roles; // only access id + std::vector Emojis; // only access id + std::vector Features; + int MFALevel; + Snowflake ApplicationID; // null + std::optional IsWidgetEnabled; + std::optional WidgetChannelID; // null + Snowflake SystemChannelID; // null + int SystemChannelFlags; + Snowflake RulesChannelID; // null + std::optional JoinedAt; // * + std::optional IsLarge; // * + std::optional IsUnavailable; // * + std::optional MemberCount; // * // std::vector VoiceStates; // opt* // std::vector Members; // opt* - incomplete anyways - std::vector Channels; // opt* + std::optional> Channels; // * // std::vector Presences; // opt* - int MaxPresences = 0; // opt, null - int MaxMembers = 0; // opt - std::string VanityURL; // null - std::string Description; // null - std::string BannerHash; // null - int PremiumTier; // - int PremiumSubscriptionCount = 0; // opt - std::string PreferredLocale; // + std::optional MaxPresences; // null + std::optional MaxMembers; + std::string VanityURL; // null + std::string Description; // null + std::string BannerHash; // null + int PremiumTier; + std::optional PremiumSubscriptionCount; + std::string PreferredLocale; Snowflake PublicUpdatesChannelID; // null - int MaxVideoChannelUsers = 0; // opt - int ApproximateMemberCount = 0; // opt - int ApproximatePresenceCount = 0; // opt + std::optional MaxVideoChannelUsers; + std::optional ApproximateMemberCount; + std::optional ApproximatePresenceCount; // undocumented // std::map GuildHashes; -- cgit v1.2.3