This commit is contained in:
@@ -44,7 +44,7 @@ class DiscordBotManager:
|
||||
guild_id = before.channel.guild.id
|
||||
LOGGER.info(f"Bot was disconnected from channel in guild {guild_id}. Attempting to reconnect...")
|
||||
try:
|
||||
await leave_voice_channel(guild_id)
|
||||
await self.leave_voice_channel(guild_id)
|
||||
except Exception as e:
|
||||
LOGGER.warning(f"Error leaving voice channel: '{e}'")
|
||||
# Attempt to reconnect to the channel after a brief pause
|
||||
|
||||
Reference in New Issue
Block a user