mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:44:31 +00:00
fix(discord): respect replyToMode in thread channel
This commit is contained in:
@@ -29,6 +29,9 @@ export function createReplyReferencePlanner(options: {
|
||||
if (!allowReference) {
|
||||
return undefined;
|
||||
}
|
||||
if (options.replyToMode === "off") {
|
||||
return undefined;
|
||||
}
|
||||
if (existingId) {
|
||||
hasReplied = true;
|
||||
return existingId;
|
||||
@@ -36,9 +39,6 @@ export function createReplyReferencePlanner(options: {
|
||||
if (!startId) {
|
||||
return undefined;
|
||||
}
|
||||
if (options.replyToMode === "off") {
|
||||
return undefined;
|
||||
}
|
||||
if (options.replyToMode === "all") {
|
||||
hasReplied = true;
|
||||
return startId;
|
||||
|
||||
Reference in New Issue
Block a user