Files
openclaw/extensions/discord/runtime-api.monitor.ts
2026-04-29 16:14:55 +01:00

51 lines
1.4 KiB
TypeScript

export {
allowListMatches,
buildDiscordMediaPayload,
createDiscordMessageHandler,
createDiscordNativeCommand,
isDiscordGroupAllowedByPolicy,
monitorDiscordProvider,
normalizeDiscordAllowList,
normalizeDiscordSlug,
registerDiscordListener,
resolveDiscordChannelConfig,
resolveDiscordChannelConfigWithFallback,
resolveDiscordCommandAuthorized,
resolveDiscordGuildEntry,
resolveDiscordReplyTarget,
resolveDiscordShouldRequireMention,
resolveGroupDmAllow,
sanitizeDiscordThreadName,
shouldEmitDiscordReactionNotification,
type DiscordAllowList,
type DiscordChannelConfigResolved,
type DiscordGuildEntryResolved,
type DiscordMessageEvent,
type DiscordMessageHandler,
type MonitorDiscordOpts,
} from "./src/monitor.js";
export {
createDiscordGatewayPlugin,
resolveDiscordGatewayIntents,
waitForDiscordGatewayPluginRegistration,
} from "./src/monitor/gateway-plugin.js";
export {
clearGateways,
getGateway,
registerGateway,
unregisterGateway,
} from "./src/monitor/gateway-registry.js";
export {
clearPresences,
getPresence,
presenceCacheSize,
setPresence,
} from "./src/monitor/presence-cache.js";
export {
DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS,
DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS,
DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS,
DISCORD_DEFAULT_LISTENER_TIMEOUT_MS,
mergeAbortSignals,
} from "./src/monitor/timeouts.js";