shieldbotlistapi
v1.0.2
Published
Hey, welcome to the Shield Bot List API. Lets get straight to the point!
Downloads
9
Maintainers
Readme
Shield Bot List API
Hey, welcome to the Shield Bot List API. Lets get straight to the point!
Authors
Support
For support, you may create a private ticket or go in the help channel in our discord.
Discord: https://discord.gg/rmZkZPR5CX
Usage/Examples
Server Count Post
const APIs = require('shieldbotlistapi');
// client should be defined as your discord client.
const serverCountAPI = new APIs.serverCountAPI('authtoken', client);
serverCountAPI.init().then(response => console.log(response));
// If you want to get a json response, you can do JSON.parse() method
Get Likes Last 24 hours
const likeAPI = new APIs.likeApi('authtoken', client);
likeAPI.init().then(textRep => {
const response = JSON.parse(textRep);
console.log(response.users.length);
});
// parse it so you can access JSON props.