diff options
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 */ |