openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 570 B
TypeScript
import type { BaseTokenResolution } from "openclaw/plugin-sdk/channel-contract";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
export type DiscordTokenSource = "env" | "config" | "none";
export type DiscordTokenResolution = BaseTokenResolution & {
source: DiscordTokenSource;
};
export declare function normalizeDiscordToken(raw: unknown, path: string): string | undefined;
export declare function resolveDiscordToken(cfg?: OpenClawConfig, opts?: {
accountId?: string | null;
envToken?: string | null;
}): DiscordTokenResolution;