mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
Discord: inherit thread bindings in reactions
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user