Skip to content
/ DLDAPI Public

The unofficial Discord Lists Development API Module.

Notifications You must be signed in to change notification settings

2M4U/DLDAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm installinfo
npm version npm downloads

The Unofficial API Module For Discord Lists Development in JavaScript.

Installation

Using npm

npm i dldapi

Using yarn

yarn add dldapi


Methods

  • .postStats()
  • More coming soon

Example(s)

Methods usage:

const DLDAPI = require('dldapi');
const dld = new DLDAPI('BOT_ID','API_KEY');
  • .postStats()
dld.postStats('SERVER_COUNT').then(console.log);

Basic Example

const DLDAPI = require('dldapi');
module.exports = (client) => {
    const dld = new DLDAPI(client.user.id, "EXAMPLE");
    dld.postStats(client.guilds.cache.size).then((r) => {
        console.log(r);
    }).catch((err) => {
        console.log(err);
    });
};

OR

const DLDAPI = require('dldapi');
module.exports = async (client) => {
    const dld = new DLDAPI(client.user.id, "EXAMPLE");
    let res = await dld.postStats(client.guilds.cache.size);
    console.log(res);
};

About

The unofficial Discord Lists Development API Module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published