Skip to content

Commit d28f638

Browse files
committed
Delete message after archive cmd
1 parent ec396b9 commit d28f638

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ async def archive(self, ctx):
318318
archives = discord.utils.get(ctx.guild.categories, name='Mod Mail Archives')
319319
await ctx.channel.edit(category=archives)
320320
done = discord.Embed(title='Thread Archived')
321-
done.description = f'**{ctx.author}** has archived this modmail session.'
321+
done.description = f'{ctx.author.mention} has archived this modmail session.'
322322
done.color = discord.Color.red()
323323
await ctx.send(embed=done)
324+
await ctx.message.delete()
324325

325326
@commands.command()
326327
@commands.has_permissions(administrator=True)

0 commit comments

Comments
 (0)