Skip to content

Commit

Permalink
close view is persistant
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Dec 9, 2023
1 parent 8b7603e commit dd18e17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cogs/inquiry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit dd18e17

Please sign in to comment.