diff options
| author | Rapptz <[email protected]> | 2020-01-14 22:08:21 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-14 22:09:24 -0500 |
| commit | 5f7a97ff9614828a0a8db4d30d496d3caf25b3ac (patch) | |
| tree | 1479ebf5f1d7537f4b4c9474e5dcdb01348d31ab | |
| parent | updated the docs for Guild.vanity_invite (diff) | |
| download | discord.py-5f7a97ff9614828a0a8db4d30d496d3caf25b3ac.tar.xz discord.py-5f7a97ff9614828a0a8db4d30d496d3caf25b3ac.zip | |
Document BaseActivity
| -rw-r--r-- | discord/client.py | 4 | ||||
| -rw-r--r-- | discord/shard.py | 4 | ||||
| -rw-r--r-- | docs/api.rst | 6 |
3 files changed, 6 insertions, 8 deletions
diff --git a/discord/client.py b/discord/client.py index 378b276d..78cbe2af 100644 --- a/discord/client.py +++ b/discord/client.py @@ -904,10 +904,6 @@ class Client: Changes the client's presence. - The activity parameter is a :class:`.Activity` object (not a string) that represents - the activity being done currently. This could also be the slimmed down versions, - :class:`.Game` and :class:`.Streaming`. - Example --------- diff --git a/discord/shard.py b/discord/shard.py index f600e13c..bcfe0cf6 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -300,10 +300,6 @@ class AutoShardedClient(Client): Changes the client's presence. - The activity parameter is a :class:`Activity` object (not a string) that represents - the activity being done currently. This could also be the slimmed down versions, - :class:`Game` and :class:`Streaming`. - Example: :: game = discord.Game("with the API") diff --git a/docs/api.rst b/docs/api.rst index fab60587..a975b624 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -2483,6 +2483,12 @@ Colour .. autoclass:: Colour :members: +BaseActivity +~~~~~~~~~~~~~~ + +.. autoclass:: BaseActivity + :members: + Activity ~~~~~~~~~ |