From aa7007b7ef649128dfda96368c3cda621c27e23d Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Sat, 17 May 2025 20:50:16 -0400 Subject: [PATCH 1/2] Modmail self/contact now links new thread on success --- techsupport_bot/commands/modmail.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index 63830010..9ad8cbc7 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -1205,7 +1205,11 @@ async def contact(self: Self, ctx: commands.Context, user: discord.User) -> None source_channel=ctx.channel, ): await auxiliary.send_confirm_embed( - message="Thread successfully created!", channel=ctx.channel + message=( + "Thread successfully created!" + f"{self.bot.get_channel(active_threads[user.id]).mention}" + ), + channel=ctx.channel, ) @auxiliary.with_typing @@ -1265,7 +1269,11 @@ async def selfcontact(self: Self, ctx: commands.Context) -> None: source_channel=ctx.channel, ): await auxiliary.send_confirm_embed( - message="Thread successfully created!", channel=ctx.channel + message=( + f"Thread successfully created!" + f"{self.bot.get_channel(active_threads[ctx.author.id]).mention}" + ), + channel=ctx.channel, ) @commands.group(name="modmail") From 3db5bc13d6d8237b1e61d78083d6666a4009e267 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Mon, 19 May 2025 23:50:55 -0400 Subject: [PATCH 2/2] Add space --- techsupport_bot/commands/modmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index 9ad8cbc7..c5fb8eea 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -1206,7 +1206,7 @@ async def contact(self: Self, ctx: commands.Context, user: discord.User) -> None ): await auxiliary.send_confirm_embed( message=( - "Thread successfully created!" + "Thread successfully created! " f"{self.bot.get_channel(active_threads[user.id]).mention}" ), channel=ctx.channel, @@ -1270,7 +1270,7 @@ async def selfcontact(self: Self, ctx: commands.Context) -> None: ): await auxiliary.send_confirm_embed( message=( - f"Thread successfully created!" + f"Thread successfully created! " f"{self.bot.get_channel(active_threads[ctx.author.id]).mention}" ), channel=ctx.channel,