From 1582116b72aba9d826c11487cf8c2ad31c6ac18e Mon Sep 17 00:00:00 2001 From: Gorialis Date: Wed, 2 Aug 2017 08:10:28 +0900 Subject: Add documentation examples for AsyncIterator and change_presence. --- discord/client.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'discord/client.py') 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`] -- cgit v1.2.3