mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 19:57:48 +00:00
Partial migration to dpy, music cog
This commit is contained in:
+1
-4
@@ -26,10 +26,7 @@ class CustomContext(commands.Context):
|
||||
|
||||
@property
|
||||
def player(self) -> DefaultPlayer:
|
||||
if self.cog.is_lavalink_ready():
|
||||
return self.bot.lavalink.player_manager.get(self.guild.id)
|
||||
|
||||
raise CommandInvokeError("Lavalink is still starting up.")
|
||||
return self.bot.lavalink.player_manager.get(self.guild.id)
|
||||
|
||||
def create_embed(self) -> Embed:
|
||||
bot: TuneBot = self.bot
|
||||
|
||||
Reference in New Issue
Block a user