Nadir Chowdhury
829c2d4a1a
Add Activity.buttons
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Nadir Chowdhury
a43ea5c550
Fix regression in Activity relying on `try_enum`
4 years ago
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Rapptz
88c23125ff
Allow CustomActivity emoji to be constructed as documented.
Fix #4049
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Nadir Chowdhury
df3e5a15a6
[bug] call super constructor for `CustomActivity` to fix `created_at`
4 years ago
Skezza
c3bca7ec73
Documentation formatting
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
kittenswolf
6decfd1d1a
Fix colour properties being displayed as methods in the documentation.
5 years ago
Snaptraks
ba112e6ec8
Remove extra backtick in CustomActivity docs
5 years ago
Harmon
6f9793fe5e
Fixes and improvements for v1.3 documentation
* 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
5 years ago
Rapptz
02397306b2
Drop superfluous zero in version related changes in the documentation
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
23f16618fd
Make CustomActivity.__str__ not raise errors and match the client
5 years ago
Rapptz
42a084028c
Expose _ActivityTag as BaseActivity to easily refer to.
5 years ago
Rapptz
a841efa087
Add support for custom activities
It's been long enough.
Fixes #2400
5 years ago
Rapptz
fe1ebb3144
Default the Streaming name to the one passed for user created ones.
5 years ago
NCPlayz
17901becf0
Add support for YouTube Streaming
5 years ago
Rapptz
7045639adc
Fix KeyError for things without a created_at
5 years ago
NCPlayz
0c97907832
Add `Activity.created_at`
5 years ago
Devon R
bf9b9c5879
Adjust BASE urls to have no trailing slash (consistency)
5 years ago
Devon R
f5ebf42e1f
Return invites as https, various URL normalization
5 years ago
Rapptz
1e982e0042
Cast activity enumerator to integer instead of accessing value directly
Should make the library more resilient to future changes.
6 years ago
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.
6 years ago
Dante Dam
01588fa34b
Tightended the constraints of Spotify.__eq__.
6 years ago
Rapptz
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
6 years ago
Rapptz
0ddc6867e9
Change all IntEnum to Enum
A testament to how many 3.5 users there are.
6 years ago
BluePhoenixGame
9765b701f2
Change Activity.application_id from `str` to `int`.
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
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"]`
7 years ago
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.
7 years ago
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.
7 years ago
Mitchell Ferree
2e4e392b25
Correct docstring for Game
7 years ago
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.
7 years ago
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.
7 years ago
Harmon
21bea43d22
Fix session_id in Spotify.to_dict
7 years ago
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.
7 years ago