mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
fix(discord): remove stale component policy helper
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import { resolveOpenProviderRuntimeGroupPolicy } from "openclaw/plugin-sdk/runtime-group-policy";
|
||||
import type { AgentComponentContext } from "./agent-components-helpers.js";
|
||||
|
||||
export function resolveComponentGroupPolicy(
|
||||
ctx: AgentComponentContext,
|
||||
): "open" | "disabled" | "allowlist" {
|
||||
return resolveOpenProviderRuntimeGroupPolicy({
|
||||
providerConfigPresent: ctx.cfg.channels?.discord !== undefined,
|
||||
groupPolicy: ctx.discordConfig?.groupPolicy,
|
||||
defaultGroupPolicy: ctx.cfg.channels?.defaults?.groupPolicy,
|
||||
}).groupPolicy;
|
||||
}
|
||||
Reference in New Issue
Block a user