JSPM

dldapi

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q23321F
  • License MIT

Unofficial API Module for Discord Lists Development

Package Exports

  • dldapi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dldapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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);
};