add bans to guild settings, tweak some other things

This commit is contained in:
ouwou
2021-01-20 02:08:48 -05:00
parent 5d1db982cb
commit a010aa11a5
14 changed files with 469 additions and 9 deletions

View File

@@ -16,6 +16,7 @@
#include "emoji.hpp"
#include "activity.hpp"
#include "sticker.hpp"
#include "ban.hpp"
// most stuff below should just be objects that get processed and thrown away immediately
@@ -54,6 +55,8 @@ enum class GatewayEvent : int {
CHANNEL_RECIPIENT_ADD,
CHANNEL_RECIPIENT_REMOVE,
TYPING_START,
GUILD_BAN_REMOVE,
GUILD_BAN_ADD,
};
struct GatewayMessage {
@@ -353,3 +356,17 @@ struct ModifyGuildObject {
friend void to_json(nlohmann::json &j, const ModifyGuildObject &m);
};
struct GuildBanRemoveObject {
Snowflake GuildID;
UserData User;
friend void from_json(const nlohmann::json &j, GuildBanRemoveObject &m);
};
struct GuildBanAddObject {
Snowflake GuildID;
UserData User;
friend void from_json(const nlohmann::json &j, GuildBanAddObject &m);
};