15 Commits

Author SHA1 Message Date
Rapptz
1e982e0042 Cast activity enumerator to integer instead of accessing value directly
Should make the library more resilient to future changes.
2019-06-25 21:50:06 -04:00
Rapptz
2cd6d771ec Make __repr__ slightly more detailed and add a few missing ones.
This includes raw events (which didn't have any) and a few other
types that were missing them. Upon review some more useful fields were
added to the repr output which would be more useful during debugging.
2019-05-26 02:32:47 -04:00
Dante Dam
01588fa34b Tightended the constraints of Spotify.__eq__. 2019-05-09 06:11:20 -04:00
Rapptz
919dbcafb3 Consistent use of __all__ to prevent merge conflicts. 2019-04-20 17:20:58 -04:00
Rapptz
0ddc6867e9 Change all IntEnum to Enum
A testament to how many 3.5 users there are.
2019-04-08 17:51:14 -04:00
BluePhoenixGame
9765b701f2 Change Activity.application_id from str to int. 2019-02-12 19:00:09 -05:00
Dante Dam
9656a21ebe Bumped copyright years to 2019. 2019-01-28 22:22:50 -05:00
Amit Katz
c3f99682de Trim whitespace in artist names in Spotify.artists
Basically Discord retrieves the data like
`artist1; artist2; artist3` and when you split only by `;` the results
will be: `[artist1, " artist2", " artist3"]`
2018-11-24 22:39:06 -05:00
Hornwitser
efb4ff850e [lint] Fix import order
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
2018-11-24 22:17:58 -05:00
Hornwitser
c557ee33ca [lint] Fix types used for __slots__ and __all__
Stay consistent with the rest of the library and use lists for module
__all__ values and tuples for class __slots__ attributes.
2018-08-22 21:43:55 -04:00
Mitchell Ferree
2e4e392b25 Correct docstring for Game 2018-03-25 04:11:54 -04:00
Myst(MysterialPy)
8ba78168a6 Add Spotify intergration colour
Added property `colour` and alias `color` which returns the Spotify
integration colour (#1db954).

Technically Discord uses both (#1cb050 and #1db954) but it appears the
former is an official Spotify colour.
2018-03-09 15:46:42 -05:00
Myst(MysterialPy)
31cc4c39de
Fix _image_url returning htps
Should be https :)

Just made this a separate PR from my previous one, in-case you decide to not include it.
2018-03-07 23:32:20 +10:00
Harmon
21bea43d22
Fix session_id in Spotify.to_dict 2018-03-06 04:55:33 -06:00
Rapptz
f8f8f418f3 Split Game object to separate Activity subtypes for Rich Presences.
This is a massive breaking change.

* All references to "game" have been renamed to "activity"
* Activity objects contain a majority of the rich presence information
* Game and Streaming are subtypes for memory optimisation purposes for
  the more common cases.
* Introduce a more specialised read-only type, Spotify, for the
  official Spotify integration to make it easier to use.
2018-03-05 11:15:49 -05:00