Skip to content

Commit d8466ba

Browse files
committed
First attempt in fixing music player
1 parent cf8b0a1 commit d8466ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teapot/cogs/music.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def disconnect(self, ctx):
269269
async def ensure_voice(self, ctx):
270270
""" This check ensures that the bot and command author are in the same voice channel. """
271271
try:
272-
player = self.bot.lavalink.players.create(ctx.guild.id, endpoint=str(ctx.guild.region))
272+
player = self.bot.lavalink.player_manager.create(ctx.guild.id, endpoint=str(ctx.guild.region))
273273
except Exception as e: # players not found
274274
print("Music Player Error:" + str(e))
275275
raise commands.CommandInvokeError('An error occurred while contacting music player')

0 commit comments

Comments
 (0)