Add documentation examples for AsyncIterator and change_presence.

This commit is contained in:
Gorialis authored and Rapptz committed 2017-08-08 17:31:08 -04:00
1 parent 20fae90a08
commit 1582116b72
3 files changed
+33 -2

No files matched your search

+5
View File
@@ -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`]