Fix crash in [p]audioset restart (#4987)

This commit is contained in:
Draper 2021-05-19 10:21:50 +01:00 committed by GitHub
parent 38da7370ec
commit 42101275d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1478,7 +1478,7 @@ class AudioSetCommands(MixinMeta, metaclass=CompositeMetaClass):
async def command_audioset_restart(self, ctx: commands.Context): async def command_audioset_restart(self, ctx: commands.Context):
"""Restarts the lavalink connection.""" """Restarts the lavalink connection."""
async with ctx.typing(): async with ctx.typing():
await lavalink.close() await lavalink.close(self.bot)
if self.player_manager is not None: if self.player_manager is not None:
await self.player_manager.shutdown() await self.player_manager.shutdown()