@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 540 B
TypeScript
import type { BaseTokenResolution } from "../channels/plugins/types.js";
import type { OpenClawConfig } from "../config/config.js";
export type DiscordTokenSource = "env" | "config" | "none";
export type DiscordTokenResolution = BaseTokenResolution & {
source: DiscordTokenSource;
};
export declare function normalizeDiscordToken(raw?: string | null): string | undefined;
export declare function resolveDiscordToken(cfg?: OpenClawConfig, opts?: {
accountId?: string | null;
envToken?: string | null;
}): DiscordTokenResolution;