From dd18e173a5a962c31319949c1fddf3105f7f49ea Mon Sep 17 00:00:00 2001 From: Selyss <99344963+Selyss@users.noreply.github.com> Date: Fri, 8 Dec 2023 22:44:09 -0500 Subject: [PATCH] close view is persistant --- cogs/inquiry.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/inquiry.py b/cogs/inquiry.py index b13c364..30166a1 100644 --- a/cogs/inquiry.py +++ b/cogs/inquiry.py @@ -134,7 +134,9 @@ async def callback(self, inter: nextcord.Interaction) -> None: class RequestView(nextcord.ui.View): def __init__(self, person, message) -> None: - super().__init__(timeout=None) + super().__init__( + timeout=None, + ) self.person = person self.message = message @@ -283,6 +285,7 @@ async def on_ready(self) -> None: self.bot.add_view(RequestView(None, None)) self.bot.add_view(TicketView()) self.bot.add_view(AdView()) + self.bot.add_view(CloseView()) self.persistent_modal_added = True @slash_command(name="deploy", description="Send inquiry embed")