Add documentation examples for AsyncIterator and change_presence.
This commit is contained in:
@ -335,7 +335,6 @@ class GuildChannel:
|
||||
- Guild roles
|
||||
- Channel overrides
|
||||
- Member overrides
|
||||
- Whether the channel is the default channel.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
@ -764,7 +763,7 @@ class Messageable(metaclass=abc.ABCMeta):
|
||||
|
||||
Example Usage: ::
|
||||
|
||||
with channel.typing():
|
||||
async with channel.typing():
|
||||
# do expensive stuff here
|
||||
await channel.send('done!')
|
||||
|
||||
|
@ -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