
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
bfd-api-redux
Advanced tools
bfd-api-redux
is an official bot-page API wrapper for Discords.com (formerly botsfordiscord.com). Please direct all inqueries and support requests to our support server.
Constructing a new API interface:
var bfd = require('bfd-api-redux');
var api = new bfd('BFD_Token', 'botID');
NOTE: If you do now wish to use callbacks, then all actions must be used inside async functions with an await
, for example:
async function user() {
console.log(await api.getUser('254287885585350666'));
}
user();
You can easily update your Bot's guild count using this function:
let serverCount = client.guilds.cache.size;
api.setServers(serverCount)
api.getVotes12().then(votes => {
console.log(votes)
})
api.getUser("254287885585350666").then(user => { //Provide a user id
console.log(user)
})
api.getUserBots("254287885585350666").then(bots => { //Provide a user id
console.log(bots)
})
api.getUser("621352902656524288").then(bot => { //Provide a bot id
console.log(bot)
})
api.getWidget("621352902656524288").then(widget => { //Provide a bot id
console.log(widget)
})
api.checkVote("254287885585350666").then(vote => { //Provide a user id
console.log(vote) //true or false + vote structure
})
api.checkVoteLight("254287885585350666").then(vote => { //Provide a user id
console.log(vote) //true or false
})
FAQs
A node.js wrapper for the Bots For Discord API
The npm package bfd-api-redux receives a total of 3 weekly downloads. As such, bfd-api-redux popularity was classified as not popular.
We found that bfd-api-redux demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.