impr: Minor clarifications in voice client.

This commit is contained in:
Lemon4ksan
2025-02-10 22:56:39 +03:00
parent b3e5fe596e
commit a5572cc6d8
3 changed files with 47 additions and 46 deletions

View File

@@ -239,11 +239,11 @@ class MyVibeSelect(Select, VoiceExtension):
await interaction.edit(view=view)
class MyVibeSettingsView(View, VoiceExtension):
def __init__(self, interaction: Interaction, *items: Item, timeout: float | None = 360, disable_on_timeout: bool = True):
def __init__(self, interaction: Interaction, *items: Item, timeout: float | None = None, disable_on_timeout: bool = True):
View.__init__(self, *items, timeout=timeout, disable_on_timeout=disable_on_timeout)
VoiceExtension.__init__(self, None)
self.interaction = interaction
async def init(self) -> Self:
if not self.interaction.user:
logging.warning('[MENU] No user in settings view')