mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
// Discord API module exposes the plugin public contract.
|
|
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
export {
|
|
buildTokenChannelStatusSummary,
|
|
PAIRING_APPROVED_MESSAGE,
|
|
projectCredentialSnapshotFields,
|
|
resolveConfiguredFromCredentialStatuses,
|
|
} from "openclaw/plugin-sdk/channel-status";
|
|
export type { ChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
export type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
|
|
|
const DISCORD_CHANNEL_META = {
|
|
id: "discord",
|
|
label: "Discord",
|
|
selectionLabel: "Discord (Bot API)",
|
|
detailLabel: "Discord Bot",
|
|
docsPath: "/channels/discord",
|
|
docsLabel: "discord",
|
|
blurb: "very well supported right now.",
|
|
systemImage: "bubble.left.and.bubble.right",
|
|
markdownCapable: true,
|
|
preferSessionLookupForAnnounceTarget: true,
|
|
} as const;
|
|
|
|
export function getChatChannelMeta(id: string) {
|
|
if (id !== DISCORD_CHANNEL_META.id) {
|
|
throw new Error(`Unsupported Discord channel meta lookup: ${id}`);
|
|
}
|
|
return DISCORD_CHANNEL_META;
|
|
}
|