mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-06 11:57:17 +00:00
Add discord.Spotify.track_url
This commit is contained in:
parent
1a3422dccc
commit
8b7e5a50b4
@ -674,6 +674,14 @@ class Spotify:
|
|||||||
def track_id(self):
|
def track_id(self):
|
||||||
""":class:`str`: The track ID used by Spotify to identify this song."""
|
""":class:`str`: The track ID used by Spotify to identify this song."""
|
||||||
return self._sync_id
|
return self._sync_id
|
||||||
|
|
||||||
|
@property
|
||||||
|
def track_url(self) -> str:
|
||||||
|
""":class:`str`: The track URL to listen on Spotify.
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
"""
|
||||||
|
return f'https://open.spotify.com/track/{self.track_id}'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def start(self):
|
def start(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user