We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3d0f3e + 9ec5cb7 commit 9c000f3Copy full SHA for 9c000f3
cogs/modmail.py
@@ -894,12 +894,16 @@ async def contact(
894
await thread.wait_until_ready()
895
embed = discord.Embed(
896
title="Created thread",
897
- description=f"Thread started in {thread.channel.mention} "
+ description=f"Thread started by {ctx.author.mention} "
898
f"for {user.mention}.",
899
color=self.bot.main_color,
900
)
901
902
- await ctx.send(embed=embed)
+ try:
903
+ await thread.channel.send(embed=embed)
904
+ except:
905
+ await ctx.send(embed=embed)
906
+ await ctx.message.delete()
907
908
@commands.group(invoke_without_command=True)
909
@checks.has_permissions(PermissionLevel.MODERATOR)
0 commit comments