discordextremelist.xyz

Wrapper for interacting with the Discord Extreme List API

Usage no npm install needed!

<script type="module">
  import discordextremelistXyz from 'https://cdn.skypack.dev/discordextremelist.xyz';
</script>

README

Discord Extreme List

A simple library for interacting with the Discord Extreme List API.

Example

const DEL = require('discordextremelist.xyz');
const client = new DEL.Client('Bot ID', 'API Token');

client.getBot('507970352501227523').then((bot) => {
    console.log(bot);
}).catch((e) => {
    console.error(e);
});

client.getUser('478255216588750858').then((user) => {
    console.log(user);
}).catch((e) => {
    console.error(e);
});

client.getWidget('507970352501227523').then((widget) => {
    console.log(widget);
}).catch((e) => {
    console.error(e);
});

client.updateCount(123).then((bot) => {
    console.log('Server count has been updated', bot);
}).catch((e) => {
    console.error(e);
});

License

This library follows the Apache-2.0 license.