Skip to content

Commit 70c8b56

Browse files
martinbndrsebkuip
authored andcommitted
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.
1 parent c31c024 commit 70c8b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,7 +2986,7 @@ async def callback(self, interaction: discord.Interaction):
29862986
# Create a synthetic message object that makes the bot appear
29872987
# as the author for menu-invoked command replies so the user
29882988
# selecting the option is not shown as a "mod" sender.
2989-
synthetic = DummyMessage(copy.copy(message))
2989+
synthetic = DummyMessage(copy.copy(self.outer_thread._genesis_message))
29902990
try:
29912991
synthetic.author = (
29922992
self.outer_thread.bot.modmail_guild.me or self.outer_thread.bot.user
@@ -3338,7 +3338,7 @@ async def callback(self, interaction: discord.Interaction):
33383338
ctxs = []
33393339
for al in normalize_alias(alias):
33403340
view_ = StringView(self.outer_thread.bot.prefix + al)
3341-
synthetic = DummyMessage(copy.copy(message))
3341+
synthetic = DummyMessage(copy.copy(self.outer_thread._genesis_message))
33423342
try:
33433343
synthetic.author = (
33443344
self.outer_thread.bot.modmail_guild.me or self.outer_thread.bot.user

0 commit comments

Comments
 (0)