discordblacklist
Advanced tools
Comparing version 3.0.2 to 3.0.3
{ | ||
"name": "discordblacklist", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "The Featured Nodejs package that facilitates getting banned Discord users from DiscordBans", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,5 +20,5 @@ <div align="center"> | ||
```$ npm install --save discordblacklist``` | ||
```$ npm install --save discordblacklist@3.0.3``` | ||
**Note: Version 3.x API has changed from previous versions, all previous versions are deprecated following a rewrite of the discordbans api as well as changed domains and removed features.** | ||
**Note: Version 3.0.3 package API has changed from previous versions, all previous versions are deprecated following a rewrite of the discordbans api as well as changed domains and removed features.** | ||
@@ -55,4 +55,9 @@ ### Quickstart: | ||
Enjoy this package? Consider starring on [github](https://github.com/wzhouwzhou/discordblacklist) and checking out some of my other work: | ||
[Youtube Search API](https://npmjs.com/ytsearcher) | ||
[Fluent Filepaths](https://npmjs.com/easypathutil) | ||
[Urban Dictionary](https://npmjs.com/easyurban) | ||
Contact William Zhou#0001 via https://discord.gg/jj5FzF7 for more information. |
@@ -30,3 +30,3 @@ 'use strict'; | ||
return new Promise((res, rej) => { | ||
const req = https.get(options, (response) => { | ||
const req = https.get(options, response => { | ||
const { statusCode } = response; | ||
@@ -39,5 +39,5 @@ if (statusCode !== 200) { | ||
response.on('data', chunk => chunks.push(chunk)); | ||
response.on('end', () => res(JSON.parse(Buffer.concat(chunks).toString()))); | ||
return response.on('end', () => res(JSON.parse(Buffer.concat(chunks).toString())[0])); | ||
}); | ||
req.end(); | ||
return req.end(); | ||
}); | ||
@@ -44,0 +44,0 @@ } |
46849
11
62