mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add documentation examples for AsyncIterator and change_presence.
This commit is contained in:
1 parent
20fae90a08
commit
1582116b72
3 files changed
+33
-2
No files matched your search
@@ -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`]
|
||||
|
||||
Reference in new issue
Block a user