aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/activity.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/discord/activity.py b/discord/activity.py
index 46d2244e..7ea60d05 100644
--- a/discord/activity.py
+++ b/discord/activity.py
@@ -25,6 +25,7 @@ DEALINGS IN THE SOFTWARE.
"""
from .enums import ActivityType, try_enum
+from .colour import Colour
import datetime
__all__ = ('Activity', 'Streaming', 'Game', 'Spotify')
@@ -456,6 +457,20 @@ class Spotify:
"""
return ActivityType.listening
+ @property
+ def colour(self):
+ """Returns the Spotify integration colour, as a :class:`Colour`.
+
+ There is an alias for this named :meth:`color`"""
+ return Colour(0x1db954)
+
+ @property
+ def color(self):
+ """Returns the Spotify integration colour, as a :class:`Colour`.
+
+ There is an alias for this named :meth:`colour`"""
+ return self.colour
+
def to_dict(self):
return {
'flags': 48, # SYNC | PLAY