diff options
author | Cara Salter <cara@devcara.com> | 2023-03-30 15:09:52 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-03-30 15:09:52 -0400 |
commit | 8233fc4bcffc82907e82b31072cb8129aa200ae5 (patch) | |
tree | bb9551e287fb632cbb3dfb070ffa228351ed4129 /include | |
parent | 527b7ab2df126bb2f480999049ed05b057a6ef83 (diff) | |
download | 142bot-8233fc4bcffc82907e82b31072cb8129aa200ae5.tar.gz 142bot-8233fc4bcffc82907e82b31072cb8129aa200ae5.zip |
reactions module
Diffstat (limited to 'include')
-rw-r--r-- | include/142bot/bot.hpp | 5 | ||||
-rw-r--r-- | include/142bot/modules.hpp | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/142bot/bot.hpp b/include/142bot/bot.hpp index c919179..49aa956 100644 --- a/include/142bot/bot.hpp +++ b/include/142bot/bot.hpp @@ -1,3 +1,4 @@ +#include <dpp/snowflake.h> #include <dpp/user.h> #include <dpp/dpp.h> @@ -8,6 +9,7 @@ class Module; class ModuleLoader; class Bot { bool dev; + dpp::snowflake owner_id; public: class dpp::cluster * core; @@ -16,6 +18,9 @@ public: Bot(bool development, dpp::cluster* cluster); //virtual ~Bot(); + + void set_owner_id(dpp::snowflake id); + dpp::snowflake get_owner_id(); ModuleLoader* loader; diff --git a/include/142bot/modules.hpp b/include/142bot/modules.hpp index d1bb3f6..ab888d3 100644 --- a/include/142bot/modules.hpp +++ b/include/142bot/modules.hpp @@ -134,7 +134,7 @@ public: bool unload(const std::string &fname); // Unloads and then reloads a module - void reload(const std::string &fname); + bool reload(const std::string &fname); // Get list of loaded modules const ModuleMap& get_loaded_modules() const; @@ -186,6 +186,7 @@ public: virtual bool OnVoiceStateUpdate(const dpp::voice_state_update_t &obj); virtual bool OnVoiceServerUpdate(const dpp::voice_server_update_t &obj); virtual bool OnWebhooksUpdate(const dpp::webhooks_update_t &obj); + void EmbedSimple(const std::string &message, int64_t channelID); }; /* A macro that lets us simply define the entrypoint of a module by name */ |