summaryrefslogtreecommitdiff
path: root/discord/objects.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r--discord/objects.hpp13
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;