fix(discord): make voice idle timeout configurable#11419
Conversation
|
Great PR! I've been working on related Discord voice fixes and have complementary changes that would pair well with this. Let me share what I found and what I can contribute. Overlapping WorkI independently implemented a similar configurable timeout, but via a Complementary Fixes I Can Contribute1. Timer reset on user speech (critical bug fix)The bot leaves mid-conversation because receiving voice input doesn't reset the inactivity timer. One-liner in # After transcript is finalized, before callback:
self._reset_voice_timeout(guild_id)This is the root cause of user reports about the bot dropping during active voice conversations — the timer keeps ticking even while the user is speaking. 2. Config bridge
|
Summary
discord.voice_timeout_secondsinconfig.yamlDISCORD_VOICE_TIMEOUT_SECONDSand read it in the Discord adapterTest Plan