unbelievaboat-api
v1.0.0
Published
A fully typesafe TypeScript wrapper for the Unbelievaboat API
Maintainers
Readme
basic typescript api wrapper for unbelievaboat. not official.
Installation
npm install unbelievaboat-apiUsage
import { Client } from "unbelievaboat-api";
const client = Client.create("put ur api token");
async function getUserBalance() {
try {
const balance = await client.getBalance("guildid", "userid");
console.log(
`cash: ${balance.cash}, bank: ${balance.bank}, total: ${balance.total}`
);
} catch (error) {
console.error("err:", error);
}
}
getUserBalance(); // normally id just await client.getBalance... but i know some people like this way..