The official discord.boats API wrapper for Node.js


Keywords
DiscordBoats, Discord, Boats, Discord Bots, Discord Bot, Bot, api, api-wrapper, apiwrapper, boat, bots, dboats, discord-app, discordapp, node, nodejs, wrapper
License
MIT
Install
npm install boats.js@2.5.3

Documentation

DEPRECATED

The website this module is for has shutdown.

NPM

Boats.js

The official https://discord.boats API wrapper for Node.js

Installation

Simply run npm i boats.js (or yarn add boats.js)

Usage

Init:

const BoatsClient = require('boats.js');
const Boats = new BoatsClient('API TOKEN', 'API VERSION (optional, either "v1" or "v2")');

Posting Bot Server Count:

Boats.postStats(SERVER_COUNT, 'BOT_ID').then(() => {
  console.log('Successfully updated server count.');
}).catch((err) => {
  console.error(err);
});

Getting Bot Info:

Boats.getBot('BOT_ID').then((bot) => {
  console.log(bot);
}).catch((err) => {
  console.error(err);
});

Getting User Info:

Boats.getUser('USER_ID').then((user) => {
  console.log(user);
}).catch((err) => {
  console.error(err);
});

Checking if a user voted your bot:

Boats.getVoted('BOT_ID', 'USER_ID').then((voted) => {
  console.log(voted);
}).catch((err) => {
  console.error(err);
});

License

MIT