aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
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 /src/modules.cpp
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 'src/modules.cpp')
-rw-r--r--src/modules.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index e784c0c..62cc70e 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -48,6 +48,8 @@ const char* StringNames[I_END + 1] = {
"I_OnVoiceServerUpdate",
"I_OnWebhooksUpdate",
"I_OnCommand",
+ "I_OnSlashCommand",
+ "I_OnFormSubmit",
"I_END"
};
@@ -437,6 +439,14 @@ bool Module::OnCommand(const dpp::message_create_t &message, const std::string &
return true;
}
+bool Module::OnSlashCommand(const dpp::slashcommand_t &event) {
+ return true;
+}
+
+bool Module::OnFormSubmit(const dpp::form_submit_t &event) {
+ return true;
+}
+
bool Module::OnAllShardsReady()
{
return true;