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

@@ -457,6 +457,9 @@ class VoiceTrackerConfigUI(ConfigUI):
@select(
cls=ChannelSelect,
placeholder="UNTRACKED_CHANNELS_PLACEHOLDER",
channel_types=[
discord.enums.ChannelType.voice, discord.enums.ChannelType.stage_voice, discord.enums.ChannelType.category
],
min_values=0, max_values=25
)
async def untracked_channels_menu(self, selection: discord.Interaction, selected):