Files
openclaw/extensions/discord/src/draft-chunking.ts
2026-06-10 13:35:19 +05:30

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,
});
}