fix(voice): Patch channel list and fix cache.

Accounts for stage channels in initialisation.
Clears _sessions_ cache when refreshing guild.
Restrict `untracked_channels` selector to exclude text.
This commit is contained in:
2023-10-09 08:09:57 +03:00
parent 5f713243a9
commit 5476ba1002
3 changed files with 13 additions and 5 deletions

View File

@@ -253,6 +253,8 @@ class VoiceSession:
f"Expiring voice session for member <uid:{self.userid}> in guild <gid:{self.guildid}> "
f"and channel <cid:{self.state.channelid}>."
)
# TODO: Would be better not to close the session and wipe the state
# Instead start a new PENDING session.
await self.close()
async def update(self, new_state: Optional[TrackedVoiceState] = None, new_rate: Optional[int] = None):