diff options
| author | Sebastian Law <[email protected]> | 2020-06-28 00:45:58 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-28 03:45:58 -0400 |
| commit | b4b953bfc66adc235e06774b0481ceb847753793 (patch) | |
| tree | 2d0cbd871944e3a5184b2dbec75dc59ddabad6d5 /discord/activity.py | |
| parent | Fix a KeyError for channels with no category in Guild.by_category (diff) | |
| download | discord.py-b4b953bfc66adc235e06774b0481ceb847753793.tar.xz discord.py-b4b953bfc66adc235e06774b0481ceb847753793.zip | |
Fix various inconsistencies within the documentation (#5067)
Diffstat (limited to 'discord/activity.py')
| -rw-r--r-- | discord/activity.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/discord/activity.py b/discord/activity.py index cc4227f1..c56fec32 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -338,7 +338,7 @@ class Game(BaseActivity): @property def type(self): - """Returns the game's type. This is for compatibility with :class:`Activity`. + """:class:`ActivityType`: Returns the game's type. This is for compatibility with :class:`Activity`. It always returns :attr:`ActivityType.playing`. """ @@ -445,7 +445,7 @@ class Streaming(BaseActivity): @property def type(self): - """Returns the game's type. This is for compatibility with :class:`Activity`. + """:class:`ActivityType`: Returns the game's type. This is for compatibility with :class:`Activity`. It always returns :attr:`ActivityType.streaming`. """ @@ -530,7 +530,7 @@ class Spotify: @property def type(self): - """Returns the activity's type. This is for compatibility with :class:`Activity`. + """:class:`ActivityType`: Returns the activity's type. This is for compatibility with :class:`Activity`. It always returns :attr:`ActivityType.listening`. """ @@ -547,14 +547,14 @@ class Spotify: @property def colour(self): - """Returns the Spotify integration colour, as a :class:`Colour`. + """:class:`Colour`: Returns the Spotify integration colour, as a :class:`Colour`. There is an alias for this named :attr:`color`""" return Colour(0x1db954) @property def color(self): - """Returns the Spotify integration colour, as a :class:`Colour`. + """:class:`Colour`: Returns the Spotify integration colour, as a :class:`Colour`. There is an alias for this named :attr:`colour`""" return self.colour @@ -697,7 +697,7 @@ class CustomActivity(BaseActivity): @property def type(self): - """Returns the activity's type. This is for compatibility with :class:`Activity`. + """:class:`ActivityType`: Returns the activity's type. This is for compatibility with :class:`Activity`. It always returns :attr:`ActivityType.custom`. """ |