@sonoransoftware/sonoran.js 1.0.56 → 1.0.57
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.
|
@@ -456,36 +456,17 @@ class REST extends events_1.EventEmitter {
|
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
case 'ERLC_TEAMS_LOCK': {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
const robloxJoinCode = cmd.robloxJoinCode;
|
|
465
|
-
if (typeof robloxJoinCode !== 'string' || robloxJoinCode.length === 0) {
|
|
466
|
-
throw new Error('ERLC_TEAMS_LOCK requires each command to include a valid robloxJoinCode.');
|
|
467
|
-
}
|
|
468
|
-
return {
|
|
469
|
-
...cmd,
|
|
470
|
-
robloxJoinCode
|
|
471
|
-
};
|
|
472
|
-
});
|
|
459
|
+
return {
|
|
460
|
+
robloxJoinCode: args[0],
|
|
461
|
+
team: args[1],
|
|
462
|
+
maxPlayers: args[2],
|
|
463
|
+
};
|
|
473
464
|
}
|
|
474
465
|
case 'ERLC_TEAMS_UNLOCK': {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
return payload.map((cmd) => {
|
|
480
|
-
const robloxJoinCode = cmd.robloxJoinCode;
|
|
481
|
-
if (typeof robloxJoinCode !== 'string' || robloxJoinCode.length === 0) {
|
|
482
|
-
throw new Error('ERLC_TEAMS_UNLOCK requires each command to include a valid robloxJoinCode.');
|
|
483
|
-
}
|
|
484
|
-
return {
|
|
485
|
-
...cmd,
|
|
486
|
-
robloxJoinCode
|
|
487
|
-
};
|
|
488
|
-
});
|
|
466
|
+
return {
|
|
467
|
+
robloxJoinCode: args[0],
|
|
468
|
+
team: args[1],
|
|
469
|
+
};
|
|
489
470
|
}
|
|
490
471
|
case 'RADIO_GET_COMMUNITY_CHANNELS':
|
|
491
472
|
case 'RADIO_GET_CONNECTED_USERS':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonoransoftware/sonoran.js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"description": "Sonoran.js is a library that allows you to interact with the Sonoran CAD and Sonoran CMS API. Based off of and utilizes several Discord.js library techniques for ease of use.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -565,36 +565,17 @@ export class REST extends EventEmitter {
|
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
case 'ERLC_TEAMS_LOCK': {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
568
|
+
return {
|
|
569
|
+
robloxJoinCode: args[0],
|
|
570
|
+
team: args[1],
|
|
571
|
+
maxPlayers: args[2],
|
|
571
572
|
}
|
|
572
|
-
return payload.map((cmd) => {
|
|
573
|
-
const robloxJoinCode = cmd.robloxJoinCode;
|
|
574
|
-
if (typeof robloxJoinCode !== 'string' || robloxJoinCode.length === 0) {
|
|
575
|
-
throw new Error('ERLC_TEAMS_LOCK requires each command to include a valid robloxJoinCode.');
|
|
576
|
-
}
|
|
577
|
-
return {
|
|
578
|
-
...cmd,
|
|
579
|
-
robloxJoinCode
|
|
580
|
-
};
|
|
581
|
-
});
|
|
582
573
|
}
|
|
583
574
|
case 'ERLC_TEAMS_UNLOCK': {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
575
|
+
return {
|
|
576
|
+
robloxJoinCode: args[0],
|
|
577
|
+
team: args[1],
|
|
587
578
|
}
|
|
588
|
-
return payload.map((cmd) => {
|
|
589
|
-
const robloxJoinCode = cmd.robloxJoinCode;
|
|
590
|
-
if (typeof robloxJoinCode !== 'string' || robloxJoinCode.length === 0) {
|
|
591
|
-
throw new Error('ERLC_TEAMS_UNLOCK requires each command to include a valid robloxJoinCode.');
|
|
592
|
-
}
|
|
593
|
-
return {
|
|
594
|
-
...cmd,
|
|
595
|
-
robloxJoinCode
|
|
596
|
-
};
|
|
597
|
-
});
|
|
598
579
|
}
|
|
599
580
|
case 'RADIO_GET_COMMUNITY_CHANNELS':
|
|
600
581
|
case 'RADIO_GET_CONNECTED_USERS':
|