summaryrefslogtreecommitdiff
path: root/src/discord/guild.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-04-13 16:29:56 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-04-13 16:29:56 -0400
commitc084230767053e942b29941a8728f421e256cf1d (patch)
treeae58dc5d3978930ec5ed1fb0e65d108b56369d42 /src/discord/guild.hpp
parent7b5dc8a86532cf00ab49a1922dbd4ce21cdaf01f (diff)
parent44ab35dfd591c4c357673cc2ce3cb3a6964a1fff (diff)
downloadabaddon-portaudio-c084230767053e942b29941a8728f421e256cf1d.tar.gz
abaddon-portaudio-c084230767053e942b29941a8728f421e256cf1d.zip
Merge branch 'master' of https://github.com/uowuo/abaddon into voice
Diffstat (limited to 'src/discord/guild.hpp')
-rw-r--r--src/discord/guild.hpp10
1 files changed, 6 insertions, 4 deletions
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 <string>
#include <unordered_set>
+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<bool> IsEmbedEnabled; // deprecated
std::optional<Snowflake> EmbedChannelID; // null, deprecated
std::optional<int> VerificationLevel;
- std::optional<int> DefaultMessageNotifications;
+ std::optional<DefaultNotificationLevel> DefaultMessageNotifications;
std::optional<int> ExplicitContentFilter;
std::optional<std::vector<RoleData>> Roles;
std::optional<std::vector<EmojiData>> Emojis; // only access id