dsl.eu

1.0.2 • Public • Published

discord-serverlist.eu

This is the official API!

Getting started

First of all, you have to login you with your discord ID and your API-Token

const dsleu = require("dsl.eu")
const client = new dsleu.Client

.
.
.

client.login("YOUR_API_TOKEN", "YOUR_DISCORD_ID", options)

The field option is for some settings for you. Just like the vote listener:

const dsleu = require("dsl.eu")
const client = new dsleu.Client

const options = {
    listenToVote: [
        "SERVER_ID"
    ]
}

client.on("vote", vote => {
    console.log(vote)
})

client.login("YOUR_API_TOKEN", "YOUR_DISCORD_ID", options)

This simple code, logs when somebody voted for one of the servers in the "listenToVote" array!

Package Sidebar

Install

npm i dsl.eu

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

4.78 kB

Total Files

3

Last publish

Collaborators

  • flamex