Comparing version 1.2.8 to 1.2.9
@@ -81,3 +81,3 @@ /** | ||
timeout: 2000, | ||
headers: { Authorization: `NANI ${this.token}` }, | ||
headers: { Authorization: `NANI ${this.token}` } | ||
}); | ||
@@ -91,4 +91,4 @@ } | ||
if (!banData) throw new Error('[Ksoft API] Please specify the banData'); | ||
if (banData.data) { | ||
const jsonBanData = banData.data; | ||
if (banData._data) { | ||
const jsonBanData = banData._data; | ||
@@ -108,3 +108,3 @@ if (!jsonBanData.user || !jsonBanData.proof || !jsonBanData.reason) | ||
const { data } = await this.http.post('/bans/add', form, { | ||
headers: form.getHeaders(), | ||
headers: form.getHeaders() | ||
}); | ||
@@ -125,3 +125,3 @@ return data; | ||
const { data } = await this.http.post('/bans/add', form, { | ||
headers: form.getHeaders(), | ||
headers: form.getHeaders() | ||
}); | ||
@@ -254,3 +254,3 @@ return data; | ||
const result = await this.bulkCheck(members, { | ||
moreInfo: moreInfo, | ||
moreInfo: moreInfo | ||
}); | ||
@@ -263,3 +263,3 @@ | ||
module.exports = { | ||
bans, | ||
bans | ||
}; |
@@ -81,3 +81,3 @@ /** | ||
timeout: 2000, | ||
headers: { Authorization: `NANI ${this.token}` }, | ||
headers: { Authorization: `NANI ${this.token}` } | ||
}); | ||
@@ -99,2 +99,3 @@ this.cache = new Map(); | ||
const { data } = await this.http.get(`/lyrics/search?q="${query}"`); | ||
this.cache.set(q, data); | ||
return data; | ||
@@ -177,3 +178,3 @@ } | ||
const songInfo = await this.search(youtubeResult[0].title, { | ||
cleanUp: true, | ||
cleanUp: true | ||
}); | ||
@@ -188,3 +189,3 @@ if (voiceChannelConnection) { | ||
youtubeResult: youtubeResult[0], | ||
apiResponse: songInfo.data[0], | ||
apiResponse: songInfo.data[0] | ||
}; | ||
@@ -196,3 +197,3 @@ | ||
module.exports = { | ||
lyrics, | ||
lyrics | ||
}; |
module.exports = class Ban { | ||
constructor() { | ||
this.data = {}; | ||
this._data = {}; | ||
} | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "ksoft.js", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "Official API Wrapper for KSoft.Si API, written in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89531
1167