From 2a594ecf15b60ce882f42776c809b452a20fdad9 Mon Sep 17 00:00:00 2001 From: Ruslan <79337999+ruslan-ilesik@users.noreply.github.com> Date: Sun, 29 Sep 2024 12:03:01 +0200 Subject: [PATCH] Docs: Fix embeds.cpp not required intent + add cout logger (#1250) --- docpages/example_code/embeds.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docpages/example_code/embeds.cpp b/docpages/example_code/embeds.cpp index 594b2a1861..f5e8e51fbd 100644 --- a/docpages/example_code/embeds.cpp +++ b/docpages/example_code/embeds.cpp @@ -2,7 +2,9 @@ int main() { /* Setup the bot */ - dpp::cluster bot("token", dpp::i_default_intents | dpp::i_message_content); + dpp::cluster bot("token"); + + bot.on_log(dpp::utility::cout_logger()); /* The event is fired when someone issues your commands */ bot.on_slashcommand([&bot](const dpp::slashcommand_t& event) {