From 64085fafec86b347c26bb92b758042a0bd4edc75 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:31:09 -0500 Subject: add basic guild notifications --- src/discord/guild.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/discord/guild.hpp') diff --git a/src/discord/guild.hpp b/src/discord/guild.hpp index 0428928..4895d30 100644 --- a/src/discord/guild.hpp +++ b/src/discord/guild.hpp @@ -8,6 +8,11 @@ #include #include +enum class DefaultNotificationLevel { + ALL_MESSAGES = 0, + ONLY_MENTIONS = 1, +}; + enum class GuildApplicationStatus { STARTED, PENDING, @@ -36,9 +41,6 @@ struct GuildApplicationData { // 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) - -// everythings optional cuz of muh partial guild object -// anything not marked optional in https://discord.com/developers/docs/resources/guild#guild-object is guaranteed to be set when returned from Store::GetGuild struct GuildData { Snowflake ID; std::string Name; @@ -55,7 +57,7 @@ struct GuildData { std::optional IsEmbedEnabled; // deprecated std::optional EmbedChannelID; // null, deprecated std::optional VerificationLevel; - std::optional DefaultMessageNotifications; + std::optional DefaultMessageNotifications; std::optional ExplicitContentFilter; std::optional> Roles; std::optional> Emojis; // only access id -- cgit v1.2.3