tsuiga

1.2.1 • Public • Published

Tsuiga

CircleCI
Tsuiga is a complete alternative library for the official dblapi.js Library.

Differences to the official library:

  • No dependencies at all.
  • Custom classes so you can type check results, and which contain some extra helpers.
  • Type checking.
  • camelCase for data returned from the API, instead of snake_case.

Installing

npm install tsuiga

Example usage

Sending stats

// example query 
const Tsuiga = require('tsuiga');
const handler = new Tsuiga('TOKEN_HERE', 'BOT_ID_HERE');
 
handler.postStats(bot.guilds.size, bot.shards.size).then(() => console.log('Sent stats!'));

Getting a user

// example query 
const Tsuiga = require('tsuiga');
const handler = new Tsuiga('TOKEN_HERE', 'BOT_ID_HERE');
 
handler.getUser('USER_ID').then(console.log);

Documentation

Documentation for the API can be found here.

Package Sidebar

Install

npm i tsuiga

Weekly Downloads

8

Version

1.2.1

License

BSD-3-Clause

Unpacked Size

43.6 kB

Total Files

14

Last publish

Collaborators

  • noud02
  • ovyerus
  • sr229