@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
12 lines (11 loc) • 446 B
TypeScript
import { type RetryConfig } from "../infra/retry.js";
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>;