Partial migration to dpy, music cog

This commit is contained in:
2022-11-12 19:38:22 +01:00
parent a4986a04fc
commit 9f62a48bbd
15 changed files with 446 additions and 611 deletions
+1 -4
View File
@@ -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