0.9.2 • Published 3 years ago
discord-widget.js v0.9.2
About
discord-widget.js is Promise-Based wrapper for Discord's widget API with minimal dependencies.
Installation
npm i discord-widget.js
Basic 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)