Skip to content

Commit 9c000f3

Browse files
authored
Merge pull request #379 from DAzVise/development
edit contact command
2 parents e3d0f3e + 9ec5cb7 commit 9c000f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cogs/modmail.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -894,12 +894,16 @@ async def contact(
894894
await thread.wait_until_ready()
895895
embed = discord.Embed(
896896
title="Created thread",
897-
description=f"Thread started in {thread.channel.mention} "
897+
description=f"Thread started by {ctx.author.mention} "
898898
f"for {user.mention}.",
899899
color=self.bot.main_color,
900900
)
901901

902-
await ctx.send(embed=embed)
902+
try:
903+
await thread.channel.send(embed=embed)
904+
except:
905+
await ctx.send(embed=embed)
906+
await ctx.message.delete()
903907

904908
@commands.group(invoke_without_command=True)
905909
@checks.has_permissions(PermissionLevel.MODERATOR)

0 commit comments

Comments
 (0)