openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 462 B
TypeScript
import { type RetryConfig } from "openclaw/plugin-sdk/infra-runtime";
export declare class DiscordApiError extends Error {
status: number;
retryAfter?: number;
constructor(message: string, status: number, retryAfter?: number);
}
export type DiscordFetchOptions = {
retry?: RetryConfig;
label?: string;
};
export declare function fetchDiscord<T>(path: string, token: string, fetcher?: typeof fetch, options?: DiscordFetchOptions): Promise<T>;