mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Fix crash in [p]audioset restart (#4987)
This commit is contained in:
parent
38da7370ec
commit
42101275d5
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user