mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
28 lines
922 B
TypeScript
28 lines
922 B
TypeScript
// Discord plugin entrypoint registers its OpenClaw integration.
|
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
import { registerDiscordSubagentHooks } from "./subagent-hooks-api.js";
|
|
import { discordVoiceTranscriptsSourceProvider } from "./transcripts-source-api.js";
|
|
|
|
export default defineBundledChannelEntry({
|
|
id: "discord",
|
|
name: "Discord",
|
|
description: "Discord channel plugin",
|
|
importMetaUrl: import.meta.url,
|
|
plugin: {
|
|
specifier: "./channel-plugin-api.js",
|
|
exportName: "discordPlugin",
|
|
},
|
|
runtime: {
|
|
specifier: "./runtime-setter-api.js",
|
|
exportName: "setDiscordRuntime",
|
|
},
|
|
accountInspect: {
|
|
specifier: "./account-inspect-api.js",
|
|
exportName: "inspectDiscordReadOnlyAccount",
|
|
},
|
|
registerFull(api) {
|
|
registerDiscordSubagentHooks(api);
|
|
api.registerTranscriptSourceProvider(discordVoiceTranscriptsSourceProvider);
|
|
},
|
|
});
|