Revolt API

This package contains typings for objects in the Revolt API and a fully typed API request builder using openapi-fetch.
Example Usage
If you just need access to types:
import type { User } from "revolt-api";
If you want to send requests:
import { createClient } from "./esm/index.js";
const api = createClient({
botToken: "bot-token",
sessionToken: "session-token",
});
api.GET("/users/@me").then((res) => console.info(res.data));
api.POST("/channels/{target}/messages", {
params: {
path: {
target: "01F92C5ZXBQWQ8KY7J8KY917NM",
},
},
body: {
content: "Hello from Fetch/Node.js/Bun/Deno!",
},
});