Top.gg setup

Set everything up on top.gg

You can set up the webhook via: https://top.gg/bot/BOTID/webhooks Change BOTID to the id of your bot For servers: https://top.gg/servers/SERVERID/webhooks Change SERVERID to the id of your server

Top.gg token

Webhook

Full example

If your url is this: http://dotwood.js then your webhook url will be like this: http://dotwood.js:22565/dblwebhook (If your port is different you have to replace 22565 for your own port)

For the example we set the password to: DOTWOODJS Your top.gg will then look like this:

Enter the following with your code:

import { VoteClient } from 'topgg-votes'

const votesClient = new VoteClient()
    .setToken("TOKEN") // Your top.gg token
    .setWebhookPort(22565) // Your host port
    .setWebhookPath("/dblwebhook") // Webhook path
    .setWebhookAuthorization("DOTWOODJS") // Webhook password

Attention! Your host must be public! Otherwise the package will not work properly

Last updated