Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Dec 9, 2023
1 parent b565ad0 commit 8b7603e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cogs/inquiry.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ def __init__(self) -> None:
label="Close", style=nextcord.ButtonStyle.red, custom_id="ticket:close"
)
async def close(self, btn: nextcord.ui.Button, inter: nextcord.Interaction):
await self.inter.channel.send("Closing ticket...")
await self.inter.channel.edit(
category=self.inter.bot.get_channel(CLOSED_CATEGORY)
)
await self.inter.channel.set_permissions(
self.inter.author, read_messages=False, send_messages=False
await inter.channel.send("Closing ticket...")
await inter.channel.edit(category=CLOSED_CATEGORY)
await inter.channel.set_permissions(
inter.author, read_messages=False, send_messages=False
)


Expand Down

0 comments on commit 8b7603e

Please sign in to comment.