Fix error in playlist cog

This commit is contained in:
Choco
2023-02-24 12:11:58 +08:00
parent 5e56b1179f
commit d4a4e031f7

View File

@@ -81,7 +81,7 @@ async def connect_channel(ctx: commands.Context, channel: discord.VoiceChannel =
raise voicelink.VoicelinkException(
get_lang(ctx.guild.id, 'noPermission'))
player: voicelink.Player = await channel.connect(cls=voicelink.Player(ctx.box, channel, ctx))
player: voicelink.Player = await channel.connect(cls=voicelink.Player(ctx.bot, channel, ctx))
return player