From 6136631d2dcd9b1f561fa589acabcda7de8e2f36 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sat, 10 Jun 2023 00:06:07 -0400 Subject: mail: Init mail module Also bind the slash command and form submit events properly Change-Id: I8d01cb0075945c79c6bf991fa4d64f5227dd5f86 --- src/bot.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/bot.cpp') diff --git a/src/bot.cpp b/src/bot.cpp index 8c3a84c..d3bd6b7 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -346,3 +346,10 @@ void Bot::onWebhooksUpdate(const dpp::webhooks_update_t &obj) } +void Bot::onSlashCommand(const dpp::slashcommand_t &event) { + FOREACH_MOD(I_OnSlashCommand, OnSlashCommand(event)); +} + +void Bot::onFormSubmit(const dpp::form_submit_t &event) { + FOREACH_MOD(I_OnFormSubmit, OnFormSubmit(event)); +} \ No newline at end of file -- cgit v1.2.3