I tried making a persistent view, therein, I added 2 buttons, one for creating a channel and the other for creating another temporary view that will not be persistent, which will be used to manage that channel, I am facing an issue here, that the button in the temporary view is not responding.
The one view above the "Admin Panel" is basically persistent.
class CLOSE(miru.Button):
def __init__(
self, *,
style: t.Union[hikari.ButtonStyle, int] = hikari.ButtonStyle.PRIMARY,
label: t.Optional[str] = None,
disabled: bool = False,
custom_id: t.Optional[str] = "ADMIN_CLOSE",
url: t.Optional[str] = None,
emoji: t.Union[hikari.Emoji, str, None] = DEFAULT.async_label,
row: t.Optional[int] = None) -> None:
super().__init__(style=style, label= label, disabled= disabled, custom_id= custom_id, url= url, emoji=emoji, row=row)
async def callback(self, context: ViewContext) -> None:
print("HELLO WORLD!")
This is the code, which represents that one button.
class AdminPanel(miru.Button):
def __init__(
self, *,
style: t.Union[hikari.ButtonStyle, int] = hikari.ButtonStyle.SECONDARY,
label: t.Optional[str] = "ADMIN",
disabled: bool = False,
custom_id: t.Optional[str] = "TICKET_ADMIN",
url: t.Optional[str] = None,
emoji: t.Union[hikari.Emoji, str, None] = None,
row: t.Optional[int] = 1
) -> None:
super().__init__(style=style,label=label, disabled=disabled, custom_id=custom_id,url=url, emoji=emoji, row=row)
async def callback(self, ctx: ViewContext) -> None:
view = AdminSystemTicket()
view.add_item(ADMIN_BUTTONS.CLOSE())
await ctx.respond(
content="Admin Panel!",
components=view,
flags=hikari.MessageFlag.EPHEMERAL
)
This is how I am calling it.

that is the reason this appeared
I tried editing it
I did
that perfectly worked thank you Nova