aboutsummaryrefslogtreecommitdiff
path: root/discord/activity.py
Commit message (Collapse)AuthorAgeFilesLines
* Added type: ignores where needed to activity.pyStocker2021-08-231-2/+4
|
* Refactor utcfromtimestamp to use fromtimestamp(..., tz=utc)Rapptz2021-07-091-8/+8
|
* Fix typing errors with ClientRapptz2021-07-041-0/+3
|
* Typehint Member and various typing fixesRapptz2021-06-301-2/+13
|
* Typehint ActivityRapptz2021-06-281-99/+99
|
* Fix Activity and Spotify datetime being timezone naiveRapptz2021-06-281-4/+4
|
* Add discord.Spotify.track_url quiprr2021-06-271-0/+8
|
* Add Activity.buttonsNadir Chowdhury2021-04-241-17/+69
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-2/+2
|
* Fix regression in Activity relying on `try_enum` Nadir Chowdhury2021-04-071-1/+4
|
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-18/+10
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Modernize code to use f-stringsRapptz2021-04-041-17/+15
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Allow CustomActivity emoji to be constructed as documented.Rapptz2021-02-181-1/+7
| | | | Fix #4049
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* [bug] call super constructor for `CustomActivity` to fix `created_at`Nadir Chowdhury2020-11-281-0/+1
|
* Documentation formattingSkezza2020-06-301-1/+1
|
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-6/+6
|
* Fix colour properties being displayed as methods in the documentation.kittenswolf2020-05-031-2/+2
|
* Remove extra backtick in CustomActivity docsSnaptraks2020-01-241-1/+1
|
* Fixes and improvements for v1.3 documentationHarmon2020-01-221-0/+6
| | | | | | | | | * Add missing versionadded strings for v1.3 * Add missing versionchanged string for Message.edit * Consistently use versionadded for attributes * Consistently use versionchanged for parameters * Use versionchanged for Bot.is_owner * Fix references in v1.3 changelog * Improve grammar in v1.3 changelog
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-4/+4
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Make CustomActivity.__str__ not raise errors and match the clientRapptz2020-01-151-1/+6
|
* Expose _ActivityTag as BaseActivity to easily refer to.Rapptz2020-01-141-5/+23
|
* Add support for custom activitiesRapptz2020-01-141-1/+106
| | | | | | It's been long enough. Fixes #2400
* Default the Streaming name to the one passed for user created ones.Rapptz2019-12-191-1/+1
|
* Add support for YouTube StreamingNCPlayz2019-12-181-8/+13
|
* Fix KeyError for things without a created_atRapptz2019-12-051-6/+14
|
* Add `Activity.created_at`NCPlayz2019-12-041-3/+21
|
* Adjust BASE urls to have no trailing slash (consistency)Devon R2019-11-151-2/+2
|
* Return invites as https, various URL normalizationDevon R2019-11-151-2/+3
|
* Cast activity enumerator to integer instead of accessing value directlyRapptz2019-06-251-1/+1
| | | | Should make the library more resilient to future changes.
* Make __repr__ slightly more detailed and add a few missing ones.Rapptz2019-05-261-0/+12
| | | | | | 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.
* Tightended the constraints of Spotify.__eq__.Dante Dam2019-05-091-1/+2
|
* Consistent use of __all__ to prevent merge conflicts.Rapptz2019-04-201-1/+6
|
* Change all IntEnum to EnumRapptz2019-04-081-1/+1
| | | | A testament to how many 3.5 users there are.
* Change Activity.application_id from `str` to `int`.BluePhoenixGame2019-02-121-2/+3
|
* Bumped copyright years to 2019.Dante Dam2019-01-281-1/+1
|
* 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.