interaction_views: Added timeout for marriage confirmation

This commit is contained in:
Yuki Joou 2023-02-26 03:20:03 +01:00
parent 7771df195b
commit c05cffc121

View file

@ -50,7 +50,7 @@ class ConfirmationView(discord.ui.View):
class MariageConfirmationView(ConfirmationView): class MariageConfirmationView(ConfirmationView):
def __init__(self, target: discord.Member): def __init__(self, target: discord.Member):
super().__init__(timeout=None) super().__init__(timeout=15*60) # 15 minues timeout
self.target = target self.target = target
def _user_can_respond(self, user: discord.User | discord.Member): def _user_can_respond(self, user: discord.User | discord.Member):