fix: intercept voice_channel status error

This commit is contained in:
Kaaninchen
2026-08-21 18:40:44 +02:00
parent 8dfa092229
commit 5609a3c425
+4
View File
@@ -145,7 +145,11 @@ async def _update_next_loop(voice_channel: discord.VoiceChannel):
next_stop_str = next_stop["name"] next_stop_str = next_stop["name"]
status_text = f"{lang.embeds.info.next_stop()}: {next_stop_str}" status_text = f"{lang.embeds.info.next_stop()}: {next_stop_str}"
try:
await voice_channel.set_status(status_text, reason="Next stop status") await voice_channel.set_status(status_text, reason="Next stop status")
except discord.HTTPException as e:
logger(F"Failed to set the channel status (network error?): {e}", "error")
if config.announcements.voice_announcements: if config.announcements.voice_announcements:
if len(voice_channel.members) > 0: if len(voice_channel.members) > 0: