Remove support for up- & downvoting sharedfiles

This commit is contained in:
3urobeat 2023-05-15 22:42:22 +02:00
parent 27d2daac61
commit f7d7cf0660
No known key found for this signature in database
GPG Key ID: 6842D80775A4E952
2 changed files with 0 additions and 58 deletions

View File

@ -204,19 +204,3 @@ CSteamSharedfile.prototype.unfavorite = function(callback) {
CSteamSharedfile.prototype.unsubscribe = function(callback) {
this._community.unsubscribeSharedfileComments(this.owner, this.id, callback);
};
/**
* Downvotes this sharedfile
* @param {function} callback - Takes only an Error object/null as the first argument
*/
CSteamSharedfile.prototype.voteDown = function(callback) {
this._community.voteDownSharedfile(this.id, callback);
};
/**
* Upvotes this sharedfile
* @param {function} callback - Takes only an Error object/null as the first argument
*/
CSteamSharedfile.prototype.voteUp = function(callback) {
this._community.voteUpSharedfile(this.id, callback);
};

View File

@ -155,45 +155,3 @@ SteamCommunity.prototype.unsubscribeSharedfileComments = function(userID, sid, c
callback(null || err);
}, "steamcommunity");
};
/**
* Downvotes a sharedfile
* @param {String} sid - ID of the sharedfile
* @param {function} callback - Takes only an Error object/null as the first argument
*/
SteamCommunity.prototype.voteDownSharedfile = function(sid, callback) {
this.httpRequestPost({
"uri": "https://steamcommunity.com/sharedfiles/votedown",
"form": {
"id": sid,
"sessionid": this.getSessionID()
}
}, function(err, response, body) {
if (!callback) {
return;
}
callback(null || err);
}, "steamcommunity");
};
/**
* Upvotes a sharedfile
* @param {String} sid - ID of the sharedfile
* @param {function} callback - Takes only an Error object/null as the first argument
*/
SteamCommunity.prototype.voteUpSharedfile = function(sid, callback) {
this.httpRequestPost({
"uri": "https://steamcommunity.com/sharedfiles/voteup",
"form": {
"id": sid,
"sessionid": this.getSessionID()
}
}, function(err, response, body) {
if (!callback) {
return;
}
callback(null || err);
}, "steamcommunity");
};