mirror of https://github.com/openclaw/openclaw.git
fix(discord): align DiscordAccountConfig.token type with SecretInput
The Zod schema (SecretInputSchema) and runtime token resolution already accept SecretRef values, but the TypeScript type was still `string`. Update to `SecretInput` so the type layer matches. Closes #32445 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
44162e7ba5
commit
755c20d0c9
|
|
@ -10,6 +10,7 @@ import type {
|
|||
} from "./types.base.js";
|
||||
import type { ChannelHeartbeatVisibilityConfig } from "./types.channels.js";
|
||||
import type { DmConfig, ProviderCommandsConfig } from "./types.messages.js";
|
||||
import type { SecretInput } from "./types.secrets.js";
|
||||
import type { GroupToolPolicyBySenderConfig, GroupToolPolicyConfig } from "./types.tools.js";
|
||||
import type { TtsConfig } from "./types.tts.js";
|
||||
|
||||
|
|
@ -218,7 +219,7 @@ export type DiscordAccountConfig = {
|
|||
configWrites?: boolean;
|
||||
/** If false, do not start this Discord account. Default: true. */
|
||||
enabled?: boolean;
|
||||
token?: string;
|
||||
token?: SecretInput;
|
||||
/** HTTP(S) proxy URL for Discord gateway WebSocket connections. */
|
||||
proxy?: string;
|
||||
/** Allow bot-authored messages to trigger replies (default: false). Set "mentions" to gate on mentions. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue