From 25ec286d0542b626355cf115ce931f4b4b9d642c Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Mon, 26 Feb 2024 12:43:31 -0500 Subject: [PATCH] i went to a park today --- src/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 20618c8..fa8a814 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,6 @@ struct attachment_t struct user_info_t { blt::u64 userID; - blt::u64 changeTime; std::string username; std::string global_nickname; std::string server_name; @@ -110,6 +109,14 @@ int main(int argc, const char** argv) dpp::cluster bot(args.get("token"), dpp::i_default_intents | dpp::i_message_content | dpp::i_all_intents); + bot.on_user_update([&bot](const dpp::user_update_t& event) { + BLT_INFO("User '%s' updated in some way; global name: '%s'", event.updated.username.c_str(), event.updated.global_name.c_str()); + }); + + bot.on_guild_member_update([&bot](const dpp::guild_member_update_t& event) { + + }); + bot.on_message_delete([&bot](const dpp::message_delete_t& event) { BLT_DEBUG("Message %ld deleted content in %ld", event.id, event.channel_id); });