dblapi.js
Advanced tools
Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "dblapi.js", | ||
"version": "2.3.0", | ||
"description": "An official module for interacting with the discordbots.org API", | ||
"version": "2.3.1", | ||
"description": "An official module for interacting with the top.gg API", | ||
"main": "index.js", | ||
@@ -16,3 +16,3 @@ "scripts": { | ||
], | ||
"author": "Discord Bot List <support@discordbots.org> (https://discordbots.org)", | ||
"author": "Discord Bot List <support@top.gg> (https://top.gg)", | ||
"repository": "DiscordBotList/dblapi.js", | ||
@@ -19,0 +19,0 @@ "license": "Apache-2.0", |
# dblapi.js | ||
An official module for interacting with the discordbots.org API | ||
An official module for interacting with the top.gg API | ||
@@ -8,3 +8,3 @@ ## Installation | ||
## Documentation | ||
Documentation can be found [here](https://discordbots.org/api/docs#jslib) | ||
Documentation can be found [here](https://top.gg/api/docs#jslib) | ||
@@ -18,3 +18,3 @@ ## Example | ||
const DBL = require("dblapi.js"); | ||
const dbl = new DBL('Your discordbots.org token', client); | ||
const dbl = new DBL('Your top.gg token', client); | ||
@@ -21,0 +21,0 @@ // Optional events |
@@ -19,3 +19,3 @@ const EventEmitter = require('events'); | ||
* Creates a new DBLAPI Instance. | ||
* @param {string} token Your discordbots.org token for this bot. | ||
* @param {string} token Your top.gg token for this bot. | ||
* @param {Object} [options] Your DBLAPI options. | ||
@@ -92,3 +92,3 @@ * @param {number} [options.statsInterval=1800000] How often the autoposter should post stats in ms. May not be smaller than 900000 and defaults to 1800000. | ||
const options = { | ||
hostname: 'discordbots.org', | ||
hostname: 'top.gg', | ||
path: `/api/${endpoint}`, | ||
@@ -95,0 +95,0 @@ method, |
33805
9