summaryrefslogtreecommitdiff
path: root/discord/objects.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-12-14 01:40:22 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-12-14 01:40:22 -0500
commit33ed25b2f66e727911182f1552aa8abfd558c69e (patch)
tree2045e2649879343c0fea20a19cd3f61f3b6c07f4 /discord/objects.hpp
parent1f19efc90e520870b43a763d64828fada343aa61 (diff)
downloadabaddon-portaudio-33ed25b2f66e727911182f1552aa8abfd558c69e.tar.gz
abaddon-portaudio-33ed25b2f66e727911182f1552aa8abfd558c69e.zip
add guild role update, create, delete events
Diffstat (limited to 'discord/objects.hpp')
-rw-r--r--discord/objects.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/discord/objects.hpp b/discord/objects.hpp
index 7e325e4..8651068 100644
--- a/discord/objects.hpp
+++ b/discord/objects.hpp
@@ -46,6 +46,9 @@ enum class GatewayEvent : int {
CHANNEL_UPDATE,
CHANNEL_CREATE,
GUILD_UPDATE,
+ GUILD_ROLE_UPDATE,
+ GUILD_ROLE_CREATE,
+ GUILD_ROLE_DELETE,
};
struct GatewayMessage {
@@ -251,3 +254,24 @@ struct ResumeMessage : GatewayMessage {
friend void to_json(nlohmann::json &j, const ResumeMessage &m);
};
+
+struct GuildRoleUpdateObject {
+ Snowflake GuildID;
+ Role Role;
+
+ friend void from_json(const nlohmann::json &j, GuildRoleUpdateObject &m);
+};
+
+struct GuildRoleCreateObject {
+ Snowflake GuildID;
+ Role Role;
+
+ friend void from_json(const nlohmann::json &j, GuildRoleCreateObject &m);
+};
+
+struct GuildRoleDeleteObject {
+ Snowflake GuildID;
+ Snowflake RoleID;
+
+ friend void from_json(const nlohmann::json &j, GuildRoleDeleteObject &m);
+};