steamutils 1.4.12 → 1.4.13
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +9 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -3488,6 +3488,12 @@ export default class SteamUser {
|
|
3488
3488
|
if (match) {
|
3489
3489
|
return match[1];
|
3490
3490
|
}
|
3491
|
+
|
3492
|
+
const $ = cheerio.load(data);
|
3493
|
+
const id = $('form input[name="groupId"]').attr("value");
|
3494
|
+
if (id) {
|
3495
|
+
return id;
|
3496
|
+
}
|
3491
3497
|
}
|
3492
3498
|
|
3493
3499
|
async leaveGroup(groupSteamID) {
|
@@ -3499,6 +3505,9 @@ export default class SteamUser {
|
|
3499
3505
|
action: "leave_group",
|
3500
3506
|
"steamids[]": groupSteamID,
|
3501
3507
|
},
|
3508
|
+
headers: {
|
3509
|
+
"Content-Type": "multipart/form-data",
|
3510
|
+
},
|
3502
3511
|
method: "POST",
|
3503
3512
|
});
|
3504
3513
|
if (result instanceof ResponseError) {
|