From 8298eaa038d2117a18e112152b5117874c862513 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Mon, 5 May 2025 18:07:07 -0400 Subject: [PATCH] Fixes modmail sending files in threads --- 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 63830010..8837422b 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -1066,23 +1066,23 @@ async def on_message(self: Self, message: discord.Message) -> None: # - Replies - case "reply": - await message.delete() await reply_to_thread( raw_contents=content[5:], message=message, thread=message.channel, anonymous=False, ) + await message.delete() return case "areply": - await message.delete() await reply_to_thread( raw_contents=content[6:], message=message, thread=message.channel, anonymous=True, ) + await message.delete() return # Sends a factoid