aboutsummaryrefslogtreecommitdiff
path: root/discord/activity.py
Commit message (Collapse)AuthorAgeFilesLines
* Trim whitespace in artist names in Spotify.artistsAmit Katz2018-11-241-1/+1
| | | | | | Basically Discord retrieves the data like `artist1; artist2; artist3` and when you split only by `;` the results will be: `[artist1, " artist2", " artist3"]`
* [lint] Fix import orderHornwitser2018-11-241-1/+2
| | | | | Reorder imports to be consistenly grouped by standard library, third party library, and local modules in that order thoughout the library.
* [lint] Fix types used for __slots__ and __all__Hornwitser2018-08-221-1/+1
| | | | | Stay consistent with the rest of the library and use lists for module __all__ values and tuples for class __slots__ attributes.
* Correct docstring for GameMitchell Ferree2018-03-251-1/+1
|
* Add Spotify intergration colourMyst(MysterialPy)2018-03-091-0/+15
| | | | | | | | 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.
* Fix _image_url returning htpsMyst(MysterialPy)2018-03-071-2/+2
| | | | | Should be https :) Just made this a separate PR from my previous one, in-case you decide to not include it.
* Fix session_id in Spotify.to_dictHarmon2018-03-061-1/+1
|
* Split Game object to separate Activity subtypes for Rich Presences.Rapptz2018-03-051-0/+565
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.