fix(shard): 🐛 p.lock not closing threads.
This commit is contained in:
@@ -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!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user