1.2.1 • Published 6 years ago

tsuiga v1.2.1

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
6 years ago

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.

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-rc1

6 years ago