From d5528957b2ab7d3449225c430d5a0be0ba80734e Mon Sep 17 00:00:00 2001 From: Yuki Joou Date: Sun, 26 Feb 2023 16:49:08 +0100 Subject: [PATCH] main: Disable view items when the views aren't needed anymore --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index b24c188..f731cb0 100755 --- a/main.py +++ b/main.py @@ -121,6 +121,9 @@ async def marry( + f" {marriage_asker.mention}?", view=marriage_confirmation) await marriage_confirmation.wait() + + marriage_confirmation.disable_all_items() + if marriage_confirmation.user_accepted is None: await context.respond("silly little bug going on :3 try again l8er :3") return @@ -169,6 +172,7 @@ async def marry( ) await polycule_confirmation_view.wait() + polycule_confirmation_view.disable_all_items() if polycule_confirmation_view.user_accepted is None: await context.respond("you hit a bug owo. nothing i can do, try again!")