mirror of
https://github.com/jarulsamy/Plex-Bot.git
synced 2024-08-19 15:01:55 +02:00
🎨 Static methods
This commit is contained in:
parent
fc4682c210
commit
db188d968b
@ -303,7 +303,8 @@ class Plex(commands.Cog):
|
|||||||
self.current_track = None
|
self.current_track = None
|
||||||
self.bot.loop.call_soon_threadsafe(self.play_next_event.set)
|
self.bot.loop.call_soon_threadsafe(self.play_next_event.set)
|
||||||
|
|
||||||
def _build_embed_track(self, track, type_="play"):
|
@staticmethod
|
||||||
|
def _build_embed_track(track, type_="play"):
|
||||||
"""Creates a pretty embed card for tracks
|
"""Creates a pretty embed card for tracks
|
||||||
|
|
||||||
Builds a helpful status embed with the following info:
|
Builds a helpful status embed with the following info:
|
||||||
@ -350,7 +351,8 @@ class Plex(commands.Cog):
|
|||||||
|
|
||||||
return embed, art_file
|
return embed, art_file
|
||||||
|
|
||||||
def _build_embed_album(self, album):
|
@staticmethod
|
||||||
|
def _build_embed_album(album):
|
||||||
"""Creates a pretty embed card for albums
|
"""Creates a pretty embed card for albums
|
||||||
|
|
||||||
Builds a helpful status embed with the following info:
|
Builds a helpful status embed with the following info:
|
||||||
|
Loading…
Reference in New Issue
Block a user