From 5559f7524f0557286f289219fcb6ac0000a8dfdd Mon Sep 17 00:00:00 2001 From: Ruslan <79337999+ruslan-ilesik@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:00:02 +0300 Subject: [PATCH] Docs: Update embeds.cpp Remove not required intent from code example. Add cout logger as we have it in other examples --- 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..7674e5cc08 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", dpp::i_default_intents); + + 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) {