summaryrefslogtreecommitdiff
path: root/src/discord/guild.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-11-28 22:42:55 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-11-28 22:42:55 -0500
commite02107feea8214a045e6faa969f00dcbc0d2b072 (patch)
tree1be2da1e6704dbc2b8fe4f40047b24d09d2a936f /src/discord/guild.hpp
parent192b043e7ac60bb06fbb25b2e46ef096b48c16fd (diff)
downloadabaddon-portaudio-e02107feea8214a045e6faa969f00dcbc0d2b072.tar.gz
abaddon-portaudio-e02107feea8214a045e6faa969f00dcbc0d2b072.zip
actually retrieve roles for guilds
FetchRoles isnt needed anymore cuz full roles are fetched now
Diffstat (limited to 'src/discord/guild.hpp')
-rw-r--r--src/discord/guild.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/discord/guild.hpp b/src/discord/guild.hpp
index 3c3828d..51b5a01 100644
--- a/src/discord/guild.hpp
+++ b/src/discord/guild.hpp
@@ -50,7 +50,7 @@ struct GuildData {
std::optional<int> VerificationLevel;
std::optional<int> DefaultMessageNotifications;
std::optional<int> ExplicitContentFilter;
- std::optional<std::vector<RoleData>> Roles; // only access id
+ std::optional<std::vector<RoleData>> Roles;
std::optional<std::vector<EmojiData>> Emojis; // only access id
std::optional<std::unordered_set<std::string>> Features;
std::optional<int> MFALevel;
@@ -96,5 +96,4 @@ struct GuildData {
bool HasAnimatedIcon() const;
std::string GetIconURL(std::string ext = "png", std::string size = "32") const;
std::vector<Snowflake> GetSortedChannels(Snowflake ignore = Snowflake::Invalid) const;
- std::vector<RoleData> FetchRoles() const; // sorted
};