mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
add set status for funsies
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "invite.hpp"
|
||||
#include "permissions.hpp"
|
||||
#include "emoji.hpp"
|
||||
#include "activity.hpp"
|
||||
|
||||
// most stuff below should just be objects that get processed and thrown away immediately
|
||||
|
||||
@@ -21,6 +22,7 @@ enum class GatewayOp : int {
|
||||
Event = 0,
|
||||
Heartbeat = 1,
|
||||
Identify = 2,
|
||||
UpdateStatus = 3,
|
||||
Hello = 10,
|
||||
HeartbeatAck = 11,
|
||||
LazyLoadRequest = 14,
|
||||
@@ -134,6 +136,14 @@ struct LazyLoadRequestMessage {
|
||||
friend void to_json(nlohmann::json &j, const LazyLoadRequestMessage &m);
|
||||
};
|
||||
|
||||
struct UpdateStatusMessage {
|
||||
std::vector<Activity> Activities; // null (but never sent as such)
|
||||
std::string Status;
|
||||
bool IsAFK;
|
||||
|
||||
friend void to_json(nlohmann::json &j, const UpdateStatusMessage &m);
|
||||
};
|
||||
|
||||
struct ReadyEventData {
|
||||
int GatewayVersion; //
|
||||
User User; //
|
||||
|
||||
Reference in New Issue
Block a user