bfd-wrapper
v1.0.0
Published
The official https://botsfordiscord.com's Node.JS wrapper
Downloads
10
Maintainers
Readme
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
