CHANNEL_RECIPIENT_ADD, CHANNEL_RECIPIENT_REMOVE

This commit is contained in:
ouwou
2020-12-22 23:52:41 -05:00
parent cb18543c50
commit dbd8564af7
4 changed files with 55 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ enum class GatewayEvent : int {
GUILD_ROLE_DELETE,
MESSAGE_REACTION_ADD,
MESSAGE_REACTION_REMOVE,
CHANNEL_RECIPIENT_ADD,
CHANNEL_RECIPIENT_REMOVE,
};
struct GatewayMessage {
@@ -318,3 +320,17 @@ struct MessageReactionRemoveObject {
friend void from_json(const nlohmann::json &j, MessageReactionRemoveObject &m);
};
struct ChannelRecipientAdd {
User User;
Snowflake ChannelID;
friend void from_json(const nlohmann::json &j, ChannelRecipientAdd &m);
};
struct ChannelRecipientRemove {
User User;
Snowflake ChannelID;
friend void from_json(const nlohmann::json &j, ChannelRecipientRemove &m);
};