aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
presence_update.hpp
1 //
2 // presence_update.hpp
3 // *******************
4 //
5 // Copyright (c) 2019 Sharon W (sharon at aegis dot gg)
6 //
7 // Distributed under the MIT License. (See accompanying file LICENSE)
8 //
9 
10 #pragma once
11 
12 #include "aegis/config.hpp"
13 #include "aegis/fwd.hpp"
14 #include "aegis/snowflake.hpp"
15 #include "aegis/gateway/objects/presence.hpp"
16 #include "aegis/gateway/objects/activity.hpp"
17 #include "aegis/gateway/objects/user.hpp"
18 #include "aegis/gateway/objects/role.hpp"
19 
20 namespace aegis
21 {
22 
23 namespace gateway
24 {
25 
26 namespace events
27 {
28 
32 {
36  std::vector<objects::role> roles;
38  objects::presence::user_status status = objects::presence::Online;
39 };
40 
41 }
42 
43 }
44 
45 }
objects::user user
Definition: presence_update.hpp:34
Stores creation time and extra data specific to Discord for entities.
Definition: snowflake.hpp:21
Definition: user.hpp:35
shards::shard & shard
Definition: presence_update.hpp:33
Definition: activity.hpp:31
Definition: presence_update.hpp:31
objects::presence::user_status status
Definition: presence_update.hpp:38
std::vector< objects::role > roles
Definition: presence_update.hpp:36
snowflake guild_id
Definition: presence_update.hpp:37
objects::activity game
Definition: presence_update.hpp:35
Tracks websocket shards and their connections.
Definition: shard.hpp:42