mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 15:01:41 +03:00
Discord: add exec approval cleanup option (#13205)
This commit is contained in:
@@ -95,6 +95,8 @@ export type DiscordExecApprovalConfig = {
|
||||
agentFilter?: string[];
|
||||
/** Only forward approvals matching these session key patterns (substring or regex). */
|
||||
sessionFilter?: string[];
|
||||
/** Delete approval DMs after approval, denial, or timeout. Default: false. */
|
||||
cleanupAfterResolve?: boolean;
|
||||
};
|
||||
|
||||
export type DiscordAgentComponentsConfig = {
|
||||
|
||||
@@ -308,6 +308,7 @@ export const DiscordAccountSchema = z
|
||||
approvers: z.array(z.union([z.string(), z.number()])).optional(),
|
||||
agentFilter: z.array(z.string()).optional(),
|
||||
sessionFilter: z.array(z.string()).optional(),
|
||||
cleanupAfterResolve: z.boolean().optional(),
|
||||
})
|
||||
.strict()
|
||||
.optional(),
|
||||
|
||||
Reference in New Issue
Block a user