mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-28 00:31:14 +00:00
17 lines
607 B
TypeScript
17 lines
607 B
TypeScript
// Discord plugin module implements draft chunking behavior.
|
|
import {
|
|
resolveChannelDraftStreamingChunking,
|
|
type ChannelDraftStreamingChunking,
|
|
} from "openclaw/plugin-sdk/channel-outbound";
|
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
|
import { DISCORD_TEXT_CHUNK_LIMIT } from "./outbound-adapter.js";
|
|
|
|
export function resolveDiscordDraftStreamingChunking(
|
|
cfg: OpenClawConfig,
|
|
accountId?: string | null,
|
|
): ChannelDraftStreamingChunking {
|
|
return resolveChannelDraftStreamingChunking(cfg, "discord", accountId, {
|
|
fallbackLimit: DISCORD_TEXT_CHUNK_LIMIT,
|
|
});
|
|
}
|