12 #include "aegis/config.hpp"
13 #include "aegis/fwd.hpp"
14 #include "aegis/snowflake.hpp"
15 #include "aegis/gateway/objects/message.hpp"
16 #include "aegis/error.hpp"
32 lib::optional<std::reference_wrapper<aegis::user>>
user;
36 bool has_user() const noexcept
38 return user.has_value();
43 return user.value().get();
44 #if defined(AEGIS_HAS_BUILTIN_OPTIONAL)
45 throw lib::bad_optional_access(
"bad optional access");
47 throw lib::bad_optional_access();
objects::message msg
Definition: message_create.hpp:34
aegis::channel & channel
Definition: message_create.hpp:33
Definition: message.hpp:57
Class for performing actions pertaining to a specified channel.
Definition: channel.hpp:170
Stores user-specific and guild-specific attributes of users.
Definition: user.hpp:37
Definition: message_create.hpp:29
lib::optional< std::reference_wrapper< aegis::user > > user
Definition: message_create.hpp:32
Tracks websocket shards and their connections.
Definition: shard.hpp:42
shards::shard & shard
Definition: message_create.hpp:31