steamutils 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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) {
|