I'm trying to change buttons view using miru and lightlulb, but second button view do not works. Here is the code:
class ButtonView(miru.View):
@miru.button(label="Dodaj uczestnika")
async def btn_uczestnik(self, button: miru.Button, ctx:miru.Context):
modal = NameModal(title="Dodaj uczestnika")
# await ctx.edit_response("You clicked me")
# await modal.send(ctx.interaction)
await ctx.respond_with_modal(modal)
@miru.button(label="Done")
async def btn_done(self, button: miru.Button, ctx:miru.Context):
view = ButtonView2(timeout=7200)
await ctx.edit_response(components=view.build())
class ButtonView2(miru.View):
@miru.button(label="Punkty")
async def btn_punkty(self, button: miru.Button, ctx:miru.Context):
print("Klik")
modal = PunktModal(title="Podaj punktu")
await ctx.respond_with_modal(modal)