Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsuiga

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsuiga

A lightweight Node.JS wrapper for discordbots.org

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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.

Keywords

FAQs

Package last updated on 03 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc