i went to a park today

main
Brett 2024-02-26 12:43:31 -05:00
parent e9cd4345f5
commit 25ec286d05
1 changed files with 8 additions and 1 deletions

View File

@ -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<std::string>("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);
});