From 8233fc4bcffc82907e82b31072cb8129aa200ae5 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 30 Mar 2023 15:09:52 -0400 Subject: reactions module --- src/bot.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/bot.cpp') diff --git a/src/bot.cpp b/src/bot.cpp index 1c764b7..57bf091 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -1,4 +1,5 @@ +#include #include #include <142bot/bot.hpp> #include @@ -22,6 +23,14 @@ bool Bot::isDevMode() { return dev; } +void Bot::set_owner_id(dpp::snowflake id) { + this->owner_id = id; +} + +dpp::snowflake Bot::get_owner_id() { + return this->owner_id; +} + int64_t Bot::getID() { return this->user.id; } @@ -127,9 +136,8 @@ void Bot::onGuildUpdate(const dpp::guild_update_t &obj) } -void Bot::onMessageReactionAdd(const dpp::message_reaction_add_t &obj) -{ - +void Bot::onMessageReactionAdd(const dpp::message_reaction_add_t &obj) { + FOREACH_MOD(I_OnMessageReactionAdd, OnMessageReactionAdd(obj)); } -- cgit v1.2.3