From ea508eb05a7aafb8521eecc17c1da7d0e1a44dfa Mon Sep 17 00:00:00 2001 From: "Martin B." <55140357+martinbndr@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:19:44 +0100 Subject: [PATCH] Fix threadmenu command execution This commit fixes the command execution for the threadmenu that caused commands to be sent to the recipient DM instead of the thread channel. --- core/thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/thread.py b/core/thread.py index 45a6cb9c71..be7f55590f 100644 --- a/core/thread.py +++ b/core/thread.py @@ -2964,7 +2964,7 @@ async def callback(self, interaction: discord.Interaction): # Create a synthetic message object that makes the bot appear # as the author for menu-invoked command replies so the user # selecting the option is not shown as a "mod" sender. - synthetic = DummyMessage(copy.copy(message)) + synthetic = DummyMessage(copy.copy(self.outer_thread._genesis_message)) try: synthetic.author = ( self.outer_thread.bot.modmail_guild.me or self.outer_thread.bot.user @@ -3316,7 +3316,7 @@ async def callback(self, interaction: discord.Interaction): ctxs = [] for al in normalize_alias(alias): view_ = StringView(self.outer_thread.bot.prefix + al) - synthetic = DummyMessage(copy.copy(message)) + synthetic = DummyMessage(copy.copy(self.outer_thread._genesis_message)) try: synthetic.author = ( self.outer_thread.bot.modmail_guild.me or self.outer_thread.bot.user