forked from OpenGamers/abaddon
add guild role update, create, delete events
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user