From 9ec5cb79c2d154bf0b827894556435db509655ec Mon Sep 17 00:00:00 2001 From: DAzVise <52792999+DAzVise@users.noreply.github.com> Date: Tue, 17 Sep 2019 14:04:16 +0300 Subject: [PATCH] Update modmail.py --- cogs/modmail.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cogs/modmail.py b/cogs/modmail.py index f8246e17e2..a407232182 100644 --- a/cogs/modmail.py +++ b/cogs/modmail.py @@ -894,12 +894,16 @@ async def contact( await thread.wait_until_ready() embed = discord.Embed( title="Created thread", - description=f"Thread started in {thread.channel.mention} " + description=f"Thread started by {ctx.author.mention} " f"for {user.mention}.", color=self.bot.main_color, ) - await ctx.send(embed=embed) + try: + await thread.channel.send(embed=embed) + except: + await ctx.send(embed=embed) + await ctx.message.delete() @commands.group(invoke_without_command=True) @checks.has_permissions(PermissionLevel.MODERATOR)