diff options
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/abc.py | 3 | ||||
| -rw-r--r-- | discord/client.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py index 785b81ff..8d479b94 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -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!') 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`] |