Skip to content

Commit

Permalink
fixed close bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Dec 22, 2023
1 parent 3a50925 commit 843c67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def on_ready(self) -> None:
@slash_command(name="close", description="close a ticket")
async def close_ticket(self, inter: nextcord.Interaction):
if inter.channel.category_id == CLOSED_CATEGORY:
await inter.send("This channel is already closed!", ephemeral=True)
await inter.channel.delete()
return
em = nextcord.Embed()
em.title = "Ticket Closed"
Expand Down

0 comments on commit 843c67d

Please sign in to comment.