mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:17:40 +00:00
fix(discord): replyToMode first behaviour
This commit is contained in:
@@ -32,20 +32,18 @@ export function createReplyReferencePlanner(options: {
|
||||
if (options.replyToMode === "off") {
|
||||
return undefined;
|
||||
}
|
||||
if (existingId) {
|
||||
hasReplied = true;
|
||||
return existingId;
|
||||
}
|
||||
if (!startId) {
|
||||
const id = existingId ?? startId;
|
||||
if (!id) {
|
||||
return undefined;
|
||||
}
|
||||
if (options.replyToMode === "all") {
|
||||
hasReplied = true;
|
||||
return startId;
|
||||
return id;
|
||||
}
|
||||
// "first": only the first reply gets a reference.
|
||||
if (!hasReplied) {
|
||||
hasReplied = true;
|
||||
return startId;
|
||||
return id;
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user