discord.py
discord.py copied to clipboard
[activity] add discord.Spotify.elapsed
Summary
Add a new property to discord.Spotify that reflects the elapsed time of the currently playing song.
Checklist
- [x] If code changes were made then they have been tested.
- [ ] I have updated the documentation to reflect the changes.
- [ ] This PR fixes an issue.
- [x] This PR adds something new (e.g. new method or parameters).
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
- [ ] This PR is not a code change (e.g. documentation, README, ...)
Not sure I get the usefulness of this one since it depends on system time. Not to mention this isn't operating on timezone aware instances due to a bug in the Spotify
implementation.
This isn't in the api and users can simply calculate it themselves, this also uses the datetime naive utcnow() with no timezone