mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 08:47:40 +00:00
fix(discord): add ackReactionScope channel override + off/none values (#28268)
This commit is contained in:
committed by
Peter Steinberger
parent
60330e011b
commit
5b64b96c6c
@@ -30,7 +30,7 @@ export type DiscordMessagePreflightContext = {
|
||||
mediaMaxBytes: number;
|
||||
textLimit: number;
|
||||
replyToMode: ReplyToMode;
|
||||
ackReactionScope: "all" | "direct" | "group-all" | "group-mentions";
|
||||
ackReactionScope: "all" | "direct" | "group-all" | "group-mentions" | "off" | "none";
|
||||
groupPolicy: "open" | "disabled" | "allowlist";
|
||||
|
||||
data: DiscordMessageEvent;
|
||||
|
||||
@@ -29,7 +29,10 @@ export function createDiscordMessageHandler(
|
||||
groupPolicy: params.discordConfig?.groupPolicy,
|
||||
defaultGroupPolicy: params.cfg.channels?.defaults?.groupPolicy,
|
||||
});
|
||||
const ackReactionScope = params.cfg.messages?.ackReactionScope ?? "group-mentions";
|
||||
const ackReactionScope =
|
||||
params.discordConfig?.ackReactionScope ??
|
||||
params.cfg.messages?.ackReactionScope ??
|
||||
"group-mentions";
|
||||
const debounceMs = resolveInboundDebounceMs({ cfg: params.cfg, channel: "discord" });
|
||||
|
||||
const debouncer = createInboundDebouncer<{ data: DiscordMessageEvent; client: Client }>({
|
||||
|
||||
Reference in New Issue
Block a user