mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
add typing indicator with optional res/typing_indicator.gif
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user