aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-06-10 00:06:07 -0400
committerCara Salter <cara@devcara.com>2023-06-10 00:06:07 -0400
commit6136631d2dcd9b1f561fa589acabcda7de8e2f36 (patch)
treef52b1afe5bdceff29bc11015c3f00b54d4bd4b76 /include
parente09e7825369ec8217456065d31dbbbb992b7f1bb (diff)
download142bot-6136631d2dcd9b1f561fa589acabcda7de8e2f36.tar.gz
142bot-6136631d2dcd9b1f561fa589acabcda7de8e2f36.zip
mail: Init mail module
Also bind the slash command and form submit events properly Change-Id: I8d01cb0075945c79c6bf991fa4d64f5227dd5f86
Diffstat (limited to 'include')
-rw-r--r--include/142bot/bot.hpp2
-rw-r--r--include/142bot/modules.hpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/142bot/bot.hpp b/include/142bot/bot.hpp
index 1fdb042..dc709ef 100644
--- a/include/142bot/bot.hpp
+++ b/include/142bot/bot.hpp
@@ -68,6 +68,8 @@ public:
void onVoiceStateUpdate (const dpp::voice_state_update_t &event);
void onVoiceServerUpdate (const dpp::voice_server_update_t &event);
void onWebhooksUpdate (const dpp::webhooks_update_t &event);
+ void onSlashCommand (const dpp::slashcommand_t &event);
+ void onFormSubmit (const dpp::form_submit_t &event);
};
#endif
diff --git a/include/142bot/modules.hpp b/include/142bot/modules.hpp
index 37f4401..617d5af 100644
--- a/include/142bot/modules.hpp
+++ b/include/142bot/modules.hpp
@@ -55,6 +55,8 @@ enum Events
I_OnVoiceServerUpdate,
I_OnWebhooksUpdate,
I_OnCommand,
+ I_OnSlashCommand,
+ I_OnFormSubmit,
I_END
};
@@ -202,6 +204,8 @@ public:
virtual bool OnVoiceServerUpdate(const dpp::voice_server_update_t &obj);
virtual bool OnWebhooksUpdate(const dpp::webhooks_update_t &obj);
virtual bool OnCommand(const dpp::message_create_t &message, const std::string &command, const std::vector<std::string>& params);
+ virtual bool OnSlashCommand(const dpp::slashcommand_t &event);
+ virtual bool OnFormSubmit(const dpp::form_submit_t &event);
void EmbedSimple(const std::string &message, int64_t channelID);
void EmbedError(int64_t channelId, std::exception &e);
void EmbedError(const std::string &message, int64_t channelId);