aegis.cpp
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Pages
Deprecated List
Member aegis::channel::create_message_embed (const std::string &content, const json &embed, int64_t nonce=0)
Parameters
contentA string of the message to send
embedA json object of the embed object itself
Returns
aegis::future<gateway::objects::message>
Member aegis::channel::create_message_embed (create_message_t obj)
See also
aegis::create_message_embed_t
Parameters
objStruct of the contents of the request
Returns
aegis::future<gateway::objects::message>
Member aegis::channel::edit_message_embed (edit_message_t obj)
See also
aegis::edit_message_embed_t
Parameters
objStruct of the contents of the request
Returns
aegis::future<gateway::objects::message>
Member aegis::channel::edit_message_embed (snowflake message_id, const std::string &content, const json &embed)
Parameters
message_idSnowflake of the message to replace. Must be your own message
contentA string of the message to set
embedA json object of the embed object itself
Returns
aegis::future<gateway::objects::message>
Member aegis::core::core (std::shared_ptr< spdlog::logger > _log, std::size_t count=2)
Parameters
_logYour pre-constructed spdlog::logger object
countAmount of threads to start
Member aegis::core::core (std::shared_ptr< asio::io_context > _io, spdlog::level::level_enum loglevel=spdlog::level::level_enum::trace)
Parameters
loglevelThe level of logging to use
Member aegis::core::core (std::shared_ptr< asio::io_context > _io, std::shared_ptr< spdlog::logger > _log)
Parameters
_ioYour pre-constructed asio::io_context object
_logYour pre-constructed spdlog::logger object
Member aegis::core::core (spdlog::level::level_enum loglevel=spdlog::level::level_enum::trace, std::size_t count=10)
Parameters
loglevelThe level of logging to use
countAmount of threads to start
Member aegis::core::create_dm_message (snowflake member_id, const std::string &content, int64_t nonce=0)
Parameters
idSnowflake of member to message
contentstring of message to send
nonceUnique id to track when message verifies (can be omitted)
Returns
aegis::future<gateway::objects::message>
Member aegis::gateway::objects::channel::channel_id
Snowflake
Member aegis::gateway::objects::guild::guild_id
Snowflake