Discord: inherit thread bindings in reactions

This commit is contained in:
Shadow
2026-01-31 20:11:32 -06:00
parent 6678151e22
commit 57ef024bbb
2 changed files with 2 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ async function handleDiscordReactionEvent(params: {
accountId: params.accountId,
guildId: data.guild_id ?? undefined,
peer: { kind: "channel", id: data.channel_id },
parentPeer: parentId ? { kind: "channel", id: parentId } : undefined,
});
enqueueSystemEvent(text, {
sessionKey: route.sessionKey,

View File

@@ -712,6 +712,7 @@ async function dispatchDiscordCommandInteraction(params: {
kind: isDirectMessage ? "dm" : isGroupDm ? "group" : "channel",
id: isDirectMessage ? user.id : channelId,
},
parentPeer: threadParentId ? { kind: "channel", id: threadParentId } : undefined,
});
const conversationLabel = isDirectMessage ? (user.globalName ?? user.username) : channelId;
const ctxPayload = finalizeInboundContext({