Skip to content
/ tinfoil Public

Unopinionated zero-dep Discord API wrapper for Bun

License

Notifications You must be signed in to change notification settings

bremea/tinfoil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE: Tinfoil is still under development! Use at your own risk.

Tinfoil

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.

Getting Started

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

Contributing

Please open an issue with any bug reports, or a pull request to merge something you worked on.

About

Unopinionated zero-dep Discord API wrapper for Bun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published