mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 18:35:21 -06:00
18 lines
569 B
TypeScript
18 lines
569 B
TypeScript
// Discord helper module supports runtime config behavior.
|
|
import {
|
|
getRuntimeConfigSnapshot,
|
|
getRuntimeConfigSourceSnapshot,
|
|
selectApplicableRuntimeConfig,
|
|
} from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
import type { OpenClawConfig } from "./runtime-api.js";
|
|
|
|
export function selectDiscordRuntimeConfig(inputConfig: OpenClawConfig): OpenClawConfig {
|
|
return (
|
|
selectApplicableRuntimeConfig({
|
|
inputConfig,
|
|
runtimeConfig: getRuntimeConfigSnapshot(),
|
|
runtimeSourceConfig: getRuntimeConfigSourceSnapshot(),
|
|
}) ?? inputConfig
|
|
);
|
|
}
|