fix(shard): 🐛 p.lock not closing threads.

This commit is contained in:
2025-04-11 14:39:55 -03:00
parent 58c442c0da
commit 596f3d50ed
+4 -2
View File
@@ -479,11 +479,13 @@ class Admin(base.Cog):
"""
if isinstance(ctx.channel, discord.Thread):
await ctx.channel.edit(
# Keep the message sending above because it'll reopen the ticket otherwise.
await ctx.send("🎫 This ticket was closed.")
return await ctx.channel.edit(
archived=True,
locked=True,
)
return await ctx.send("🎫 This ticket was closed.")
await ctx.send("❌ This is not a ticket!")