node-streamelements
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -357,2 +357,9 @@ const request = require('request'); | ||
} | ||
setSongRequestVolume(volumeAmount, channel = this.accountId) { | ||
const volume = parseInt(volumeAmount, 10); | ||
if (isNaN(volume) || volume < 0 || volume > 100) { | ||
throw new Error('volumeAmount should be a number between 0 and 100.'); | ||
} | ||
return this.makeRequest(HTTP.POST, `songrequest/${channel}/player/volume`, { volume }); | ||
} | ||
@@ -359,0 +366,0 @@ // /speech |
{ | ||
"name": "node-streamelements", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "An unofficial wrapper for the StreamElements API.", | ||
@@ -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
23162
458