Skip to content

Commit

Permalink
docs: added a note to setting_status for guild cache (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 authored Oct 20, 2023
1 parent 8b877f9 commit 458ebb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docpages/example_programs/misc/setting_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A bot status is pretty cool, and it'd be cooler if you knew how to do it! This tutorial will cover how to set the bot status to say `Playing games!`, as well as covering how to set the status to the amount of guilds every two minutes.

\note dpp::get_guild_cache requires the bot to have the guild cache enabled, if your bot has this disabled then you can't use that. Instead, you should look to use dpp::cluster::current_application_get and get the `approximate_guild_count` from dpp::application in the callback.

First, we'll cover setting the bot status to `Playing games!`.

\include{cpp} setting_status1.cpp
Expand Down

0 comments on commit 458ebb4

Please sign in to comment.