Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Getting your bot likes

iDerp edited this page Mar 27, 2018 · 3 revisions

This is very easy.

All you need to do is run the following without any args.

dbw.getLikes()

But! Make sure you either await it or use a promise.

// await
let botLikes = await dbw.getLikes()

// promise
dbw.getLikes().then(botLikes => {})

The function will then return an array of users who have liked your bot, for example:

[
    {
        "avatar": "##################################",
        "discriminator": "0001",
        "id": "1",
        "username": "#########"
    },
    {
        "avatar": "##################################",
        "discriminator": "3616",
        "id": "2",
        "username": "iDerp"
    },
    {
        "avatar": "##################################",
        "discriminator": "2849",
        "id": "3",
        "username": "####"
    },
    {
        "avatar": "##################################",
        "discriminator": "7453",
        "id": "4",
        "username": "##########"
    }
]

Clone this wiki locally