diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-01 00:01:48 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-01 00:01:48 -0400 |
commit | 79e4252ab390d2449757c972f248bc194be4134f (patch) | |
tree | dc21a05d669ca5990fa697cf272d9d526fdf0b3d /discord/objects.hpp | |
parent | 2d0c78d4fae6e7a2e596fe9db24a78a0f878bd48 (diff) | |
download | abaddon-portaudio-79e4252ab390d2449757c972f248bc194be4134f.tar.gz abaddon-portaudio-79e4252ab390d2449757c972f248bc194be4134f.zip |
handle GUILD_UPDATE
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r-- | discord/objects.hpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/discord/objects.hpp b/discord/objects.hpp index 66d899c..b660a6a 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -40,6 +40,7 @@ enum class GatewayEvent : int { CHANNEL_DELETE, CHANNEL_UPDATE, CHANNEL_CREATE, + GUILD_UPDATE, }; struct GatewayMessage { @@ -196,10 +197,10 @@ struct MessageEditObject { }; struct GuildMemberUpdateMessage { - Snowflake GuildID; // + Snowflake GuildID; // std::vector<Snowflake> Roles; // - User User; // - std::string Nick; // opt, null + User User; // + std::string Nick; // opt, null std::string JoinedAt; std::string PremiumSince; // opt, null @@ -208,15 +209,15 @@ struct GuildMemberUpdateMessage { struct ClientStatus { std::string Desktop; // opt - std::string Mobile; // opt - std::string Web; // opt + std::string Mobile; // opt + std::string Web; // opt friend void from_json(const nlohmann::json &j, ClientStatus &m); }; struct PresenceUpdateMessage { nlohmann::json User; // the client updates an existing object from this data - Snowflake GuildID; // opt + Snowflake GuildID; // opt std::string Status; // std::vector<Activity> Activities; ClientStatus ClientStatus; |