1.0.0 • Published 6 years ago

bfd-wrapper v1.0.0

Weekly downloads
1
License
GPL-3.0
Repository
-
Last release
6 years ago

Installation

npm install bfd-wrapper

Usage

POSTING SERVER COUNT TO BOTS FOR DISCORD'S API

const BFD = require("bfd-wrapper");
const bfd = new BFD('AUTHORISATION TOKEN');
bfd.postCount(`${client.guilds.size}`, `${client.user.id}`);

COLLECTING WHAT WE STORE ABOUT YOUR BOT (to comply with GDPR, effective 25th May 2018)

const BFD = require("bfd-wrapper");
const bfd = new BFD('AUTHORISATION TOKEN');
bfd.getInfo(`${client.user.id}`);

Note: Wrapper automatically parses the JSON data!

CHECKS IF BOT IS VERIFIED ON BOTS FOR DISCORD

const BFD = require("bfd-wrapper");
const bfd = new BFD('AUTHORISATION TOKEN');
bfd.isVerified(`${client.user.id}`);

This returns BOOLEANs. If it is verified, it is true. Vice-versa.

Enjoy the official Bots For Discord's Node.JS wrapper