diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-07 02:41:49 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-01-07 02:41:49 -0500 |
commit | 8cf95fce0cb233125334482149c2c9f4219da52b (patch) | |
tree | c0c2e267385363e0f87ad4c80d299c08d33a33a9 /discord/guild.hpp | |
parent | 2d6c4cd50d0075c064641150dcf65e6b58d5bf36 (diff) | |
download | abaddon-portaudio-8cf95fce0cb233125334482149c2c9f4219da52b.tar.gz abaddon-portaudio-8cf95fce0cb233125334482149c2c9f4219da52b.zip |
improve build process, add github actions
Diffstat (limited to 'discord/guild.hpp')
-rw-r--r-- | discord/guild.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/guild.hpp b/discord/guild.hpp index ba46d75..c8676b3 100644 --- a/discord/guild.hpp +++ b/discord/guild.hpp @@ -9,7 +9,7 @@ // 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 { +struct GuildData { Snowflake ID; std::string Name; std::string Icon; // null @@ -27,8 +27,8 @@ struct Guild { int VerificationLevel; int DefaultMessageNotifications; int ExplicitContentFilter; - std::vector<Role> Roles; // only access id - std::vector<Emoji> Emojis; // only access id + std::vector<RoleData> Roles; // only access id + std::vector<EmojiData> Emojis; // only access id std::vector<std::string> Features; int MFALevel; Snowflake ApplicationID; // null @@ -43,7 +43,7 @@ struct Guild { std::optional<int> MemberCount; // * // std::vector<VoiceStateData> VoiceStates; // opt* // std::vector<MemberData> Members; // opt* - incomplete anyways - std::optional<std::vector<Channel>> Channels; // * + std::optional<std::vector<ChannelData>> Channels; // * // std::vector<PresenceUpdateData> Presences; // opt* std::optional<int> MaxPresences; // null std::optional<int> MaxMembers; @@ -64,7 +64,7 @@ struct Guild { // * - documentation says only sent in GUILD_CREATE, but these can be sent anyways in the READY event - friend void from_json(const nlohmann::json &j, Guild &m); + friend void from_json(const nlohmann::json &j, GuildData &m); void update_from_json(const nlohmann::json &j); bool HasIcon() const; |