Fixed some bugs and cleaned up some code
This commit is contained in:
parent
43edfacda1
commit
3d20c8cf5e
|
|
@ -11,7 +11,7 @@ if discord.__version__ != "2.0.0a":
|
|||
"using 'pip install git+https://github.com/Rapptz/discord.py@master'"
|
||||
)
|
||||
|
||||
__version__ = "1.1.1"
|
||||
__version__ = "1.1.2"
|
||||
__title__ = "pomice"
|
||||
__author__ = "cloudwithax"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class Filter:
|
|||
self.payload = None
|
||||
|
||||
|
||||
class Equalizer:
|
||||
class Equalizer(Filter):
|
||||
"""
|
||||
Filter which represents a 15 band equalizer.
|
||||
You can adjust the dynamic of the sound using this filter.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class Album:
|
|||
self.total_tracks = data["total_tracks"]
|
||||
self.id = data["id"]
|
||||
self.image = data["images"][0]["url"]
|
||||
self.uri = data["external_urls"]["spotify"]
|
||||
self.uri = f"https://open.spotify.com/album/{self.id}"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class Playlist:
|
|||
self.total_tracks = data["tracks"]["total"]
|
||||
self.id = data["id"]
|
||||
self.image = data["images"][0]["url"]
|
||||
self.uri = data["external_urls"]["spotify"]
|
||||
self.uri = f"https://open.spotify.com/playlist/{self.id}"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class Track:
|
|||
else:
|
||||
self.image = None
|
||||
|
||||
self.uri = data["external_urls"]["spotify"]
|
||||
self.uri = f"https://open.spotify.com/track/{self.id}"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue