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

View File

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