From b4b953bfc66adc235e06774b0481ceb847753793 Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Sun, 28 Jun 2020 00:45:58 -0700 Subject: Fix various inconsistencies within the documentation (#5067) --- discord/activity.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'discord/activity.py') 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`. """ -- cgit v1.2.3