Socket
Socket
Sign inDemoInstall

bfd-js-api

Package Overview
Dependencies
1
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bfd-js-api

Bots for Discord API VIA JS


Version published
Maintainers
1
Install size
1.25 MB
Created

Readme

Source

bfd-js-api

Javascript Library made for Bots for Discord API

How to Install

npm install bfd-js-api

Documentation AutoPost

const Discord = require("discord.js");
const client = new Discord.client();
const bfdapi = require('bfd-js-api');
const bfd = new bfdapi(client, 'Your BFD API Token', autopost /*(Enable AutoPost Stats? true or false)*/, intervalValue /*(in Seconds & Default to 30 Mins)*/);

//Events for AutoPost (Optional)
bfd.on('posted', (guildCount) => {
	console.log(`Successfully Posted ${guildCount} Guilds`);
});
bfd.on('error', (err) => {
	console.log(`I have Errored!\n${err}`);
});

Documentation Methods

.getBotStats(botID);
//returns a Promise<Object>
.getBotEmbed(botID);
//returns a Buffer<Object>

.getUserStats(userID);
//returns a Promise<Object>
.getUserBots(userID);
//returns a Promise<Object>

Supported Libraries

Discord.js
Eris

Keywords

FAQs

Last updated on 01 Nov 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc