add typing indicator with optional res/typing_indicator.gif

This commit is contained in:
ouwou
2021-01-11 18:27:46 -05:00
parent def598941a
commit e8cbb9d3d1
10 changed files with 232 additions and 18 deletions

View File

@@ -53,6 +53,7 @@ enum class GatewayEvent : int {
MESSAGE_REACTION_REMOVE,
CHANNEL_RECIPIENT_ADD,
CHANNEL_RECIPIENT_REMOVE,
TYPING_START,
};
struct GatewayMessage {
@@ -334,3 +335,13 @@ struct ChannelRecipientRemove {
friend void from_json(const nlohmann::json &j, ChannelRecipientRemove &m);
};
struct TypingStartObject {
Snowflake ChannelID;
std::optional<Snowflake> GuildID;
Snowflake UserID;
uint64_t Timestamp;
std::optional<GuildMember> Member;
friend void from_json(const nlohmann::json &j, TypingStartObject &m);
};