We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf8b0a1 commit d8466baCopy full SHA for d8466ba
teapot/cogs/music.py
@@ -269,7 +269,7 @@ async def disconnect(self, ctx):
269
async def ensure_voice(self, ctx):
270
""" This check ensures that the bot and command author are in the same voice channel. """
271
try:
272
- player = self.bot.lavalink.players.create(ctx.guild.id, endpoint=str(ctx.guild.region))
+ player = self.bot.lavalink.player_manager.create(ctx.guild.id, endpoint=str(ctx.guild.region))
273
except Exception as e: # players not found
274
print("Music Player Error:" + str(e))
275
raise commands.CommandInvokeError('An error occurred while contacting music player')
0 commit comments