fix: Increase timeout on update.

This commit is contained in:
Lemon4ksan
2025-03-20 14:11:47 +03:00
parent 170b8f3c0e
commit 43de5636d8
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import logging
from time import monotonic
from typing import Self, Literal, cast
from discord.ui import View, Button, Item, Select
@@ -727,6 +728,9 @@ class MenuView(View, VoiceExtension):
if disable:
self.disable_all_items()
if self.timeout:
self.__timeout_expiry = monotonic() + self.timeout
return self