openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
22 lines (21 loc) • 592 B
TypeScript
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
type DiscordAudioAttachment = {
content_type?: string;
url?: string;
};
export declare function resolveDiscordPreflightAudioMentionContext(params: {
message: {
attachments?: DiscordAudioAttachment[];
content?: string;
};
isDirectMessage: boolean;
shouldRequireMention: boolean;
mentionRegexes: RegExp[];
cfg: OpenClawConfig;
abortSignal?: AbortSignal;
}): Promise<{
hasAudioAttachment: boolean;
hasTypedText: boolean;
transcript?: string;
}>;
export {};