Skip to content

Commit

Permalink
Docs: Fix embeds.cpp not required intent + add cout logger (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-ilesik authored Sep 29, 2024
1 parent 22ea2ba commit 2a594ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docpages/example_code/embeds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2a594ec

Please sign in to comment.