main: Disable view items when the views aren't needed anymore

This commit is contained in:
Yuki Joou 2023-02-26 16:49:08 +01:00
parent d2c31b6d4e
commit d5528957b2

View file

@ -121,6 +121,9 @@ async def marry(
+ f" {marriage_asker.mention}?", view=marriage_confirmation) + f" {marriage_asker.mention}?", view=marriage_confirmation)
await marriage_confirmation.wait() await marriage_confirmation.wait()
marriage_confirmation.disable_all_items()
if marriage_confirmation.user_accepted is None: if marriage_confirmation.user_accepted is None:
await context.respond("silly little bug going on :3 try again l8er :3") await context.respond("silly little bug going on :3 try again l8er :3")
return return
@ -169,6 +172,7 @@ async def marry(
) )
await polycule_confirmation_view.wait() await polycule_confirmation_view.wait()
polycule_confirmation_view.disable_all_items()
if polycule_confirmation_view.user_accepted is None: if polycule_confirmation_view.user_accepted is None:
await context.respond("you hit a bug owo. nothing i can do, try again!") await context.respond("you hit a bug owo. nothing i can do, try again!")