NOTICE: Tinfoil is still under development! Use at your own risk.
Tinfoil is a small, unopinionated, zero-dependency Discord API wrapper, written in Typescript for the Bun runtime. It includes no caching, rate limit handling, command handlers, etc. It is up to you to implement everything you need for your bot - tinfoil simply makes interacting with the API a bit easier.
You can install Tinfoil with one of the commands below, depending on what package manager you are using:
// Install commmands coming soon
Here is an example of using the REST API:
import { RestClient } from "tinfoil";
const bot = new RestClient(process.env.BOT_TOKEN as string);
console.log(await bot.user.me.get()); // Logs bot information
Please open an issue with any bug reports, or a pull request to merge something you worked on.