aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index 91eff60c..25fd5bb7 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -753,6 +753,11 @@ class Client:
The game parameter is a Game object (not a string) that represents
a game being played currently.
+ Example: ::
+
+ game = discord.Game(name="with the API")
+ await client.change_presence(status=discord.Status.idle, game=game)
+
Parameters
----------
game: Optional[:class:`Game`]