discord-widget.js
v0.9.2
Published
Promise-Based wrapper for Discord's widget API with minimal dependencies.
Maintainers
Readme
About
discord-widget.js is Promise-Based wrapper for Discord's widget API with minimal dependencies.
Installation
npm i discord-widget.jsBasic Usage
const w = require("discord-widget.js");
(async() => {
try{
let myWidget = await new w.Widget("GUILD_ID");
console.log(myWidget.name);
}catch(e){
console.error(e.message);
}
})();Documentation
The JSDoc documentation can be found here (still a work in progress)
