Socket
Socket
Sign inDemoInstall

bfd-api-redux

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "bfd-api-redux",
"version": "1.1.0",
"version": "1.1.1",
"description": "A node.js wrapper for the Bots For Discord API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -67,2 +67,22 @@ const EventEmitter = require("events");

async getVotes12(id = this._id, token = this._token) {
return new Promise((resolve, reject) => {
https.get({
hostname: 'discords.com',
path: `/bots/api/bot/${id}/votes12h`,
headers: {
Authorization: token,
"Content-Type": "application/json"
},
parse: "json"
}, async (res) => {
res.on('data', (d) => {
resolve(JSON.parse(d.toString("utf-8")));
});
}).on('error', (e) => {
reject(e);
})
})
}
async getWidget(id) {

@@ -69,0 +89,0 @@ return new Promise((resolve, reject) => {

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