0.9.2 • Published 3 years ago

discord-widget.js v0.9.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

About

discord-widget.js is Promise-Based wrapper for Discord's widget API with minimal dependencies.

Installation

NPM

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)