diff --git a/global.html b/global.html index 725fb1d9..5ce2865d 100644 --- a/global.html +++ b/global.html @@ -127,7 +127,7 @@ @@ -8520,6 +8520,10 @@
Parameters:
+
Deprecated:
+ @@ -8538,7 +8542,7 @@
Parameters:

View Source - lib/util/getCurrentUser.js, line 20 + lib/util/getCurrentUser.js, line 22

@@ -8590,9 +8594,7 @@
Parameters:
Example
-
const noblox = require("noblox.js")
-// Login using your cookie.
-const user = await noblox.getCurrentUser()
+
const noblox = require("noblox.js")
@@ -23894,6 +23896,187 @@
Example
+ + +
+ + + +

+ # + + + + getUserFunds(userId) → {Promise.<number>} + + +

+ + + + +
+

🔓 Gets the amount of robux for the authenticated user.

+
+ + + + + + + + + + +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
userId + + +number + + + +

Must match the userId of the authenticated user

+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ View Source + + lib/economy/getUserFunds.js, line 22 + +

+ +
+ + + + + + + + + + + + + + + + + + +
+
+
+ + + +
+ + +
+ + +Promise.<number> + + +
+ +
+ + +
+
+ + + + +
Example
+ + +
const noblox = require("noblox.js")
+// Login using your cookie
+const currentUser = await noblox.setCookie(process.env.ROBLOXCOOKIE)
+const robux = await noblox.getUserFunds(currentUser.id)
+ + +
@@ -35212,7 +35395,7 @@

- setCookie(cookie, validateopt) → {Promise.<LoggedInUserData>} + setCookie(cookie, validateopt) → {Promise.<AuthenticatedUserData>}

@@ -35415,7 +35598,7 @@
Parameters:
-Promise.<LoggedInUserData> +Promise.<AuthenticatedUserData>
@@ -36478,7 +36661,7 @@
Parameters:
-NobloxOptions +Partial.<NobloxOptions> @@ -41278,7 +41461,7 @@
Properties:

View Source - typings/jsDocs.ts, line 258 + typings/jsDocs.ts, line 259

@@ -41700,7 +41883,7 @@
Properties:

View Source - typings/jsDocs.ts, line 318 + typings/jsDocs.ts, line 319

@@ -41848,7 +42031,7 @@
Properties:

View Source - typings/jsDocs.ts, line 327 + typings/jsDocs.ts, line 328

@@ -42019,7 +42202,7 @@
Properties:

View Source - typings/jsDocs.ts, line 212 + typings/jsDocs.ts, line 213

@@ -42213,7 +42396,7 @@
Properties:

View Source - typings/jsDocs.ts, line 908 + typings/jsDocs.ts, line 909

@@ -42361,7 +42544,7 @@
Properties:

View Source - typings/jsDocs.ts, line 902 + typings/jsDocs.ts, line 903

@@ -42556,7 +42739,7 @@
Properties:

View Source - typings/jsDocs.ts, line 916 + typings/jsDocs.ts, line 917

@@ -42898,7 +43081,7 @@
Properties:

View Source - typings/jsDocs.ts, line 289 + typings/jsDocs.ts, line 290

@@ -43046,7 +43229,7 @@
Properties:

View Source - typings/jsDocs.ts, line 283 + typings/jsDocs.ts, line 284

@@ -43286,7 +43469,7 @@
Properties:

View Source - typings/jsDocs.ts, line 273 + typings/jsDocs.ts, line 274

@@ -43674,7 +43857,7 @@
Properties:

View Source - typings/jsDocs.ts, line 300 + typings/jsDocs.ts, line 301

@@ -43845,7 +44028,7 @@
Properties:

View Source - typings/jsDocs.ts, line 344 + typings/jsDocs.ts, line 345

@@ -44108,7 +44291,7 @@
Properties:

View Source - typings/jsDocs.ts, line 333 + typings/jsDocs.ts, line 334

@@ -44440,7 +44623,7 @@
Properties:

View Source - typings/jsDocs.ts, line 244 + typings/jsDocs.ts, line 245

@@ -44565,7 +44748,7 @@
Properties:

View Source - typings/jsDocs.ts, line 219 + typings/jsDocs.ts, line 220

@@ -44805,7 +44988,7 @@
Properties:

View Source - typings/jsDocs.ts, line 263 + typings/jsDocs.ts, line 264

@@ -45922,7 +46105,7 @@
Properties:

View Source - typings/jsDocs.ts, line 231 + typings/jsDocs.ts, line 232

@@ -46070,7 +46253,7 @@
Properties:

View Source - typings/jsDocs.ts, line 123 + typings/jsDocs.ts, line 124

@@ -46289,7 +46472,7 @@
Properties:

View Source - typings/jsDocs.ts, line 108 + typings/jsDocs.ts, line 109

@@ -46585,7 +46768,7 @@
Properties:

View Source - typings/jsDocs.ts, line 804 + typings/jsDocs.ts, line 805

@@ -46751,7 +46934,7 @@
Properties:

View Source - typings/jsDocs.ts, line 129 + typings/jsDocs.ts, line 130

@@ -47066,7 +47249,7 @@
Properties:

View Source - typings/jsDocs.ts, line 456 + typings/jsDocs.ts, line 457

@@ -47214,7 +47397,7 @@
Properties:

View Source - typings/jsDocs.ts, line 477 + typings/jsDocs.ts, line 478

@@ -47362,7 +47545,7 @@
Properties:

View Source - typings/jsDocs.ts, line 483 + typings/jsDocs.ts, line 484

@@ -47510,7 +47693,7 @@
Properties:

View Source - typings/jsDocs.ts, line 509 + typings/jsDocs.ts, line 510

@@ -47598,7 +47781,7 @@

View Source - typings/jsDocs.ts, line 489 + typings/jsDocs.ts, line 490

@@ -47939,7 +48122,7 @@

Properties:

View Source - typings/jsDocs.ts, line 419 + typings/jsDocs.ts, line 420

@@ -48087,7 +48270,7 @@
Properties:

View Source - typings/jsDocs.ts, line 444 + typings/jsDocs.ts, line 445

@@ -48212,7 +48395,7 @@
Properties:

View Source - typings/jsDocs.ts, line 439 + typings/jsDocs.ts, line 440

@@ -48360,7 +48543,7 @@
Properties:

View Source - typings/jsDocs.ts, line 433 + typings/jsDocs.ts, line 434

@@ -48508,7 +48691,7 @@
Properties:

View Source - typings/jsDocs.ts, line 450 + typings/jsDocs.ts, line 451

@@ -48705,7 +48888,7 @@
Properties:

View Source - typings/jsDocs.ts, line 469 + typings/jsDocs.ts, line 470

@@ -48853,7 +49036,7 @@
Properties:

View Source - typings/jsDocs.ts, line 498 + typings/jsDocs.ts, line 499

@@ -49001,7 +49184,7 @@
Properties:

View Source - typings/jsDocs.ts, line 413 + typings/jsDocs.ts, line 414

@@ -49150,7 +49333,7 @@
Properties:

View Source - typings/jsDocs.ts, line 631 + typings/jsDocs.ts, line 632

@@ -49872,7 +50055,7 @@
Properties:

View Source - typings/jsDocs.ts, line 203 + typings/jsDocs.ts, line 204

@@ -50066,7 +50249,7 @@
Properties:

View Source - typings/jsDocs.ts, line 366 + typings/jsDocs.ts, line 367

@@ -50237,7 +50420,7 @@
Properties:

View Source - typings/jsDocs.ts, line 374 + typings/jsDocs.ts, line 375

@@ -50431,7 +50614,7 @@
Properties:

View Source - typings/jsDocs.ts, line 381 + typings/jsDocs.ts, line 382

@@ -51561,7 +51744,7 @@
Properties:

View Source - typings/jsDocs.ts, line 238 + typings/jsDocs.ts, line 239

@@ -52327,7 +52510,7 @@
Properties:

View Source - typings/jsDocs.ts, line 594 + typings/jsDocs.ts, line 595

@@ -52578,7 +52761,7 @@
Properties:

View Source - typings/jsDocs.ts, line 622 + typings/jsDocs.ts, line 623

@@ -52749,7 +52932,7 @@
Properties:

View Source - typings/jsDocs.ts, line 615 + typings/jsDocs.ts, line 616

@@ -55225,7 +55408,7 @@
Properties:

View Source - typings/jsDocs.ts, line 522 + typings/jsDocs.ts, line 523

@@ -55478,7 +55661,7 @@
Properties:

View Source - typings/jsDocs.ts, line 638 + typings/jsDocs.ts, line 639

@@ -55766,7 +55949,7 @@
Properties:

View Source - typings/jsDocs.ts, line 532 + typings/jsDocs.ts, line 533

@@ -55891,7 +56074,7 @@
Properties:

View Source - typings/jsDocs.ts, line 718 + typings/jsDocs.ts, line 719

@@ -56131,7 +56314,7 @@
Properties:

View Source - typings/jsDocs.ts, line 723 + typings/jsDocs.ts, line 724

@@ -56472,7 +56655,7 @@
Properties:

View Source - typings/jsDocs.ts, line 351 + typings/jsDocs.ts, line 352

@@ -56597,7 +56780,7 @@
Properties:

View Source - typings/jsDocs.ts, line 493 + typings/jsDocs.ts, line 494

@@ -56722,7 +56905,7 @@
Properties:

View Source - typings/jsDocs.ts, line 504 + typings/jsDocs.ts, line 505

@@ -57282,7 +57465,7 @@
Properties:

View Source - typings/jsDocs.ts, line 810 + typings/jsDocs.ts, line 811

@@ -57430,7 +57613,7 @@
Properties:

View Source - typings/jsDocs.ts, line 850 + typings/jsDocs.ts, line 851

@@ -57555,7 +57738,7 @@
Properties:

View Source - typings/jsDocs.ts, line 892 + typings/jsDocs.ts, line 893

@@ -57818,7 +58001,7 @@
Properties:

View Source - typings/jsDocs.ts, line 778 + typings/jsDocs.ts, line 779

@@ -58200,7 +58383,7 @@
Properties:

View Source - typings/jsDocs.ts, line 834 + typings/jsDocs.ts, line 835

@@ -58276,7 +58459,7 @@

View Source - typings/jsDocs.ts, line 733 + typings/jsDocs.ts, line 734

@@ -58424,7 +58607,7 @@

Properties:

View Source - typings/jsDocs.ts, line 961 + typings/jsDocs.ts, line 962

@@ -58595,7 +58778,7 @@
Properties:

View Source - typings/jsDocs.ts, line 954 + typings/jsDocs.ts, line 955

@@ -58790,7 +58973,7 @@
Properties:

View Source - typings/jsDocs.ts, line 967 + typings/jsDocs.ts, line 968

@@ -58961,7 +59144,7 @@
Properties:

View Source - typings/jsDocs.ts, line 771 + typings/jsDocs.ts, line 772

@@ -59132,7 +59315,7 @@
Properties:

View Source - typings/jsDocs.ts, line 764 + typings/jsDocs.ts, line 765

@@ -59257,7 +59440,7 @@
Properties:

View Source - typings/jsDocs.ts, line 897 + typings/jsDocs.ts, line 898

@@ -59474,7 +59657,7 @@
Properties:

View Source - typings/jsDocs.ts, line 755 + typings/jsDocs.ts, line 756

@@ -59737,7 +59920,7 @@
Properties:

View Source - typings/jsDocs.ts, line 823 + typings/jsDocs.ts, line 824

@@ -59931,7 +60114,7 @@
Properties:

View Source - typings/jsDocs.ts, line 884 + typings/jsDocs.ts, line 885

@@ -60153,7 +60336,7 @@
Properties:

View Source - typings/jsDocs.ts, line 876 + typings/jsDocs.ts, line 877

@@ -60347,7 +60530,7 @@
Properties:

View Source - typings/jsDocs.ts, line 868 + typings/jsDocs.ts, line 869

@@ -60799,7 +60982,7 @@
Properties:

View Source - typings/jsDocs.ts, line 856 + typings/jsDocs.ts, line 857

@@ -61519,29 +61702,6 @@
Properties:
- - - - - - - - TicketsBalance - - - - - -number - - - - - - - - - @@ -61578,7 +61738,7 @@
Properties:
-boolean +false @@ -61656,7 +61816,7 @@
Properties:

View Source - typings/jsDocs.ts, line 1023 + typings/jsDocs.ts, line 1024

@@ -61718,6 +61878,29 @@
Properties:
+ + + show_deprecation_warnings + + + + + +boolean + + + + + + + + + +

Prints console warnings for functions that are being polyfilled by newer methods due to upstream Roblox API changes

+ + + + session_only @@ -63312,7 +63495,7 @@
Properties:

View Source - typings/jsDocs.ts, line 515 + typings/jsDocs.ts, line 516

@@ -63460,7 +63643,7 @@
Properties:

View Source - typings/jsDocs.ts, line 1004 + typings/jsDocs.ts, line 1005

@@ -63884,7 +64067,7 @@
Properties:

View Source - typings/jsDocs.ts, line 576 + typings/jsDocs.ts, line 577

@@ -63966,7 +64149,7 @@

View Source - typings/jsDocs.ts, line 661 + typings/jsDocs.ts, line 662

@@ -64042,7 +64225,7 @@

View Source - typings/jsDocs.ts, line 296 + typings/jsDocs.ts, line 297

@@ -65346,7 +65529,7 @@

Properties:

View Source - typings/jsDocs.ts, line 117 + typings/jsDocs.ts, line 118

@@ -65911,7 +66094,7 @@

View Source - typings/jsDocs.ts, line 1010 + typings/jsDocs.ts, line 1011

@@ -66948,7 +67131,7 @@

Properties:

View Source - typings/jsDocs.ts, line 78 + typings/jsDocs.ts, line 79

@@ -67119,7 +67302,7 @@
Properties:

View Source - typings/jsDocs.ts, line 71 + typings/jsDocs.ts, line 72

@@ -67469,7 +67652,7 @@

View Source - typings/jsDocs.ts, line 310 + typings/jsDocs.ts, line 311

@@ -67545,7 +67728,7 @@

View Source - typings/jsDocs.ts, line 314 + typings/jsDocs.ts, line 315

@@ -67621,7 +67804,7 @@

View Source - typings/jsDocs.ts, line 665 + typings/jsDocs.ts, line 666

@@ -67838,7 +68021,7 @@

Properties:

View Source - typings/jsDocs.ts, line 357 + typings/jsDocs.ts, line 358

@@ -68159,7 +68342,7 @@
Properties:

View Source - typings/jsDocs.ts, line 135 + typings/jsDocs.ts, line 136

@@ -68333,7 +68516,7 @@
Properties:

View Source - typings/jsDocs.ts, line 146 + typings/jsDocs.ts, line 147

@@ -68555,7 +68738,7 @@
Properties:

View Source - typings/jsDocs.ts, line 153 + typings/jsDocs.ts, line 154

@@ -68969,7 +69152,7 @@
Properties:

View Source - typings/jsDocs.ts, line 974 + typings/jsDocs.ts, line 975

@@ -69191,7 +69374,7 @@
Properties:

View Source - typings/jsDocs.ts, line 738 + typings/jsDocs.ts, line 739

@@ -69362,7 +69545,7 @@
Properties:

View Source - typings/jsDocs.ts, line 797 + typings/jsDocs.ts, line 798

@@ -69556,7 +69739,7 @@
Properties:

View Source - typings/jsDocs.ts, line 789 + typings/jsDocs.ts, line 790

@@ -69807,7 +69990,7 @@
Properties:

View Source - typings/jsDocs.ts, line 746 + typings/jsDocs.ts, line 747

@@ -70214,7 +70397,7 @@
Properties:

View Source - typings/jsDocs.ts, line 389 + typings/jsDocs.ts, line 390

@@ -70554,7 +70737,7 @@
Properties:

View Source - typings/jsDocs.ts, line 607 + typings/jsDocs.ts, line 608

@@ -70748,7 +70931,7 @@
Properties:

View Source - typings/jsDocs.ts, line 405 + typings/jsDocs.ts, line 406

@@ -71036,7 +71219,7 @@
Properties:

View Source - typings/jsDocs.ts, line 173 + typings/jsDocs.ts, line 174

@@ -71432,7 +71615,7 @@
Properties:

View Source - typings/jsDocs.ts, line 161 + typings/jsDocs.ts, line 162

@@ -72511,7 +72694,7 @@
Properties:

View Source - typings/jsDocs.ts, line 923 + typings/jsDocs.ts, line 924

@@ -72659,7 +72842,7 @@
Properties:

View Source - typings/jsDocs.ts, line 937 + typings/jsDocs.ts, line 938

@@ -72830,7 +73013,7 @@
Properties:

View Source - typings/jsDocs.ts, line 930 + typings/jsDocs.ts, line 931

@@ -73141,7 +73324,7 @@
Properties:

View Source - typings/jsDocs.ts, line 943 + typings/jsDocs.ts, line 944

@@ -73460,7 +73643,7 @@
Properties:

View Source - typings/jsDocs.ts, line 654 + typings/jsDocs.ts, line 655

@@ -73654,7 +73837,7 @@
Properties:

View Source - typings/jsDocs.ts, line 542 + typings/jsDocs.ts, line 543

@@ -74310,7 +74493,7 @@
Properties:

View Source - typings/jsDocs.ts, line 550 + typings/jsDocs.ts, line 551

@@ -74507,7 +74690,7 @@
Properties:

View Source - typings/jsDocs.ts, line 647 + typings/jsDocs.ts, line 648

@@ -75288,7 +75471,7 @@
Properties:

View Source - typings/jsDocs.ts, line 669 + typings/jsDocs.ts, line 670

@@ -75413,7 +75596,7 @@
Properties:

View Source - typings/jsDocs.ts, line 400 + typings/jsDocs.ts, line 401

@@ -76223,7 +76406,7 @@
Properties:

View Source - typings/jsDocs.ts, line 693 + typings/jsDocs.ts, line 694

@@ -76302,7 +76485,7 @@

View Source - typings/jsDocs.ts, line 67 + typings/jsDocs.ts, line 68

@@ -76427,7 +76610,7 @@

Properties:

View Source - typings/jsDocs.ts, line 183 + typings/jsDocs.ts, line 184

@@ -76684,7 +76867,7 @@
Properties:

View Source - typings/jsDocs.ts, line 194 + typings/jsDocs.ts, line 195

@@ -76832,7 +77015,7 @@
Properties:

View Source - typings/jsDocs.ts, line 188 + typings/jsDocs.ts, line 189

@@ -77717,7 +77900,7 @@

View Source - typings/jsDocs.ts, line 1016 + typings/jsDocs.ts, line 1017

@@ -78082,7 +78265,7 @@

Properties:

View Source - typings/jsDocs.ts, line 988 + typings/jsDocs.ts, line 989

@@ -78277,7 +78460,7 @@
Properties:

View Source - typings/jsDocs.ts, line 997 + typings/jsDocs.ts, line 998

@@ -78448,7 +78631,7 @@
Properties:

View Source - typings/jsDocs.ts, line 224 + typings/jsDocs.ts, line 225

diff --git a/index.html b/index.html index 82e0e11b..04ce155a 100644 --- a/index.html +++ b/index.html @@ -127,7 +127,7 @@
diff --git a/lib_accountinformation_getUserSocialLinks.js.html b/lib_accountinformation_getUserSocialLinks.js.html index 67193856..bb9e12fa 100644 --- a/lib_accountinformation_getUserSocialLinks.js.html +++ b/lib_accountinformation_getUserSocialLinks.js.html @@ -129,7 +129,7 @@ diff --git a/lib_accountsettings_block.js.html b/lib_accountsettings_block.js.html index ca7aad7b..1d414b93 100644 --- a/lib_accountsettings_block.js.html +++ b/lib_accountsettings_block.js.html @@ -129,7 +129,7 @@ diff --git a/lib_accountsettings_unblock.js.html b/lib_accountsettings_unblock.js.html index 4276c836..e5d566e9 100644 --- a/lib_accountsettings_unblock.js.html +++ b/lib_accountsettings_unblock.js.html @@ -129,7 +129,7 @@ diff --git a/lib_asset_deleteFromInventory.js.html b/lib_asset_deleteFromInventory.js.html index 08f1e791..97f9e298 100644 --- a/lib_asset_deleteFromInventory.js.html +++ b/lib_asset_deleteFromInventory.js.html @@ -129,7 +129,7 @@ diff --git a/lib_asset_getGamePassProductInfo.js.html b/lib_asset_getGamePassProductInfo.js.html index e1fc6873..d8eecea9 100644 --- a/lib_asset_getGamePassProductInfo.js.html +++ b/lib_asset_getGamePassProductInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_asset_getProductInfo.js.html b/lib_asset_getProductInfo.js.html index 898c549d..5d2dbd9a 100644 --- a/lib_asset_getProductInfo.js.html +++ b/lib_asset_getProductInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_asset_uploadAnimation.js.html b/lib_asset_uploadAnimation.js.html index 10cea21b..2b87513d 100644 --- a/lib_asset_uploadAnimation.js.html +++ b/lib_asset_uploadAnimation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_asset_uploadItem.js.html b/lib_asset_uploadItem.js.html index fb6813b5..64cdcf37 100644 --- a/lib_asset_uploadItem.js.html +++ b/lib_asset_uploadItem.js.html @@ -129,7 +129,7 @@ diff --git a/lib_asset_uploadModel.js.html b/lib_asset_uploadModel.js.html index 0315d2bf..118ffe70 100644 --- a/lib_asset_uploadModel.js.html +++ b/lib_asset_uploadModel.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_avatarRules.js.html b/lib_avatar_avatarRules.js.html index 9bfda14c..1f8495d0 100644 --- a/lib_avatar_avatarRules.js.html +++ b/lib_avatar_avatarRules.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_currentlyWearing.js.html b/lib_avatar_currentlyWearing.js.html index 0b67af96..eab853cf 100644 --- a/lib_avatar_currentlyWearing.js.html +++ b/lib_avatar_currentlyWearing.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_getAvatar.js.html b/lib_avatar_getAvatar.js.html index 059798c7..45fbf22a 100644 --- a/lib_avatar_getAvatar.js.html +++ b/lib_avatar_getAvatar.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_getCurrentAvatar.js.html b/lib_avatar_getCurrentAvatar.js.html index 48652072..69a9d178 100644 --- a/lib_avatar_getCurrentAvatar.js.html +++ b/lib_avatar_getCurrentAvatar.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_getRecentItems.js.html b/lib_avatar_getRecentItems.js.html index bb932afa..dad1cbf9 100644 --- a/lib_avatar_getRecentItems.js.html +++ b/lib_avatar_getRecentItems.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_outfitDetails.js.html b/lib_avatar_outfitDetails.js.html index 04b83329..47116544 100644 --- a/lib_avatar_outfitDetails.js.html +++ b/lib_avatar_outfitDetails.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_outfits.js.html b/lib_avatar_outfits.js.html index 3383b75f..517ca2a4 100644 --- a/lib_avatar_outfits.js.html +++ b/lib_avatar_outfits.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_redrawAvatar.js.html b/lib_avatar_redrawAvatar.js.html index c23cae0d..1823d228 100644 --- a/lib_avatar_redrawAvatar.js.html +++ b/lib_avatar_redrawAvatar.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_removeAssetId.js.html b/lib_avatar_removeAssetId.js.html index c9cbc364..8a60543b 100644 --- a/lib_avatar_removeAssetId.js.html +++ b/lib_avatar_removeAssetId.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_setAvatarBodyColors.js.html b/lib_avatar_setAvatarBodyColors.js.html index 10b28d80..b05ee5c5 100644 --- a/lib_avatar_setAvatarBodyColors.js.html +++ b/lib_avatar_setAvatarBodyColors.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_setAvatarScales.js.html b/lib_avatar_setAvatarScales.js.html index db75c67d..e4bfd874 100644 --- a/lib_avatar_setAvatarScales.js.html +++ b/lib_avatar_setAvatarScales.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_setPlayerAvatarType.js.html b/lib_avatar_setPlayerAvatarType.js.html index df2f416b..ffa5c5e4 100644 --- a/lib_avatar_setPlayerAvatarType.js.html +++ b/lib_avatar_setPlayerAvatarType.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_setWearingAssets.js.html b/lib_avatar_setWearingAssets.js.html index 31c9b309..1f26e805 100644 --- a/lib_avatar_setWearingAssets.js.html +++ b/lib_avatar_setWearingAssets.js.html @@ -129,7 +129,7 @@ diff --git a/lib_avatar_wearAssetId.js.html b/lib_avatar_wearAssetId.js.html index c4ba5e37..0d2654fa 100644 --- a/lib_avatar_wearAssetId.js.html +++ b/lib_avatar_wearAssetId.js.html @@ -129,7 +129,7 @@ diff --git a/lib_badges_getAwardedTimestamps.js.html b/lib_badges_getAwardedTimestamps.js.html index 9c0c75a6..21d96da6 100644 --- a/lib_badges_getAwardedTimestamps.js.html +++ b/lib_badges_getAwardedTimestamps.js.html @@ -129,7 +129,7 @@ diff --git a/lib_badges_getBadgeInfo.js.html b/lib_badges_getBadgeInfo.js.html index 8a5064c2..90bd189f 100644 --- a/lib_badges_getBadgeInfo.js.html +++ b/lib_badges_getBadgeInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_badges_getGameBadges.js.html b/lib_badges_getGameBadges.js.html index 406d2a1a..2f10d237 100644 --- a/lib_badges_getGameBadges.js.html +++ b/lib_badges_getGameBadges.js.html @@ -129,7 +129,7 @@ diff --git a/lib_badges_getPlayerBadges.js.html b/lib_badges_getPlayerBadges.js.html index 032158cc..d3e5898f 100644 --- a/lib_badges_getPlayerBadges.js.html +++ b/lib_badges_getPlayerBadges.js.html @@ -129,7 +129,7 @@ diff --git a/lib_badges_updateBadgeInfo.js.html b/lib_badges_updateBadgeInfo.js.html index ab5f2059..bd32116c 100644 --- a/lib_badges_updateBadgeInfo.js.html +++ b/lib_badges_updateBadgeInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_addUsersToConversation.js.html b/lib_chat_addUsersToConversation.js.html index 2bdac862..faa21cb3 100644 --- a/lib_chat_addUsersToConversation.js.html +++ b/lib_chat_addUsersToConversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_chatSettings.js.html b/lib_chat_chatSettings.js.html index a547f901..a834fdb9 100644 --- a/lib_chat_chatSettings.js.html +++ b/lib_chat_chatSettings.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_getChatMessages.js.html b/lib_chat_getChatMessages.js.html index 023246c1..fd4945bc 100644 --- a/lib_chat_getChatMessages.js.html +++ b/lib_chat_getChatMessages.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_getConversations.js.html b/lib_chat_getConversations.js.html index b209ae5e..1adbd974 100644 --- a/lib_chat_getConversations.js.html +++ b/lib_chat_getConversations.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_getRolloutSettings.js.html b/lib_chat_getRolloutSettings.js.html index 2c387491..a1ddc0d8 100644 --- a/lib_chat_getRolloutSettings.js.html +++ b/lib_chat_getRolloutSettings.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_getUnreadConversationCount.js.html b/lib_chat_getUnreadConversationCount.js.html index 792b10f3..50330a25 100644 --- a/lib_chat_getUnreadConversationCount.js.html +++ b/lib_chat_getUnreadConversationCount.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_getUnreadMessages.js.html b/lib_chat_getUnreadMessages.js.html index bb4e1f10..d2d27031 100644 --- a/lib_chat_getUnreadMessages.js.html +++ b/lib_chat_getUnreadMessages.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_getUserConversations.js.html b/lib_chat_getUserConversations.js.html index 9ee5d74c..d342b39e 100644 --- a/lib_chat_getUserConversations.js.html +++ b/lib_chat_getUserConversations.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_markChatAsRead.js.html b/lib_chat_markChatAsRead.js.html index aa0e6915..63c7278c 100644 --- a/lib_chat_markChatAsRead.js.html +++ b/lib_chat_markChatAsRead.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_markChatAsSeen.js.html b/lib_chat_markChatAsSeen.js.html index 443eb3a1..654c74e5 100644 --- a/lib_chat_markChatAsSeen.js.html +++ b/lib_chat_markChatAsSeen.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_multiGetLatestMessages.js.html b/lib_chat_multiGetLatestMessages.js.html index 98bf442f..c97bf157 100644 --- a/lib_chat_multiGetLatestMessages.js.html +++ b/lib_chat_multiGetLatestMessages.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_onNewConversation.js.html b/lib_chat_onNewConversation.js.html index 4b846227..dab03957 100644 --- a/lib_chat_onNewConversation.js.html +++ b/lib_chat_onNewConversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_onNewMessage.js.html b/lib_chat_onNewMessage.js.html index 9540b6d8..be9230af 100644 --- a/lib_chat_onNewMessage.js.html +++ b/lib_chat_onNewMessage.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_onNewMessageBySelf.js.html b/lib_chat_onNewMessageBySelf.js.html index e4e6673f..a82769bd 100644 --- a/lib_chat_onNewMessageBySelf.js.html +++ b/lib_chat_onNewMessageBySelf.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_onUserOnline.js.html b/lib_chat_onUserOnline.js.html index 709d2800..cdb0836d 100644 --- a/lib_chat_onUserOnline.js.html +++ b/lib_chat_onUserOnline.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_onUserTyping.js.html b/lib_chat_onUserTyping.js.html index b61eed03..85d09240 100644 --- a/lib_chat_onUserTyping.js.html +++ b/lib_chat_onUserTyping.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_removeFromGroupConversation.js.html b/lib_chat_removeFromGroupConversation.js.html index a4c1ad2b..3ecf0728 100644 --- a/lib_chat_removeFromGroupConversation.js.html +++ b/lib_chat_removeFromGroupConversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_renameGroupConversation.js.html b/lib_chat_renameGroupConversation.js.html index a2983ceb..f9dfa754 100644 --- a/lib_chat_renameGroupConversation.js.html +++ b/lib_chat_renameGroupConversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_sendChatMessage.js.html b/lib_chat_sendChatMessage.js.html index 24910822..726ac78d 100644 --- a/lib_chat_sendChatMessage.js.html +++ b/lib_chat_sendChatMessage.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_setChatUserTyping.js.html b/lib_chat_setChatUserTyping.js.html index 1e15dea6..d563a6a3 100644 --- a/lib_chat_setChatUserTyping.js.html +++ b/lib_chat_setChatUserTyping.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_start121Conversation.js.html b/lib_chat_start121Conversation.js.html index f77ca7b9..c9abd5fa 100644 --- a/lib_chat_start121Conversation.js.html +++ b/lib_chat_start121Conversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_startCloudEditConversation.js.html b/lib_chat_startCloudEditConversation.js.html index ac54ef39..fb3a1c56 100644 --- a/lib_chat_startCloudEditConversation.js.html +++ b/lib_chat_startCloudEditConversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_chat_startGroupConversation.js.html b/lib_chat_startGroupConversation.js.html index 2bd1debe..198c2681 100644 --- a/lib_chat_startGroupConversation.js.html +++ b/lib_chat_startGroupConversation.js.html @@ -129,7 +129,7 @@ diff --git a/lib_client_onNotification.js.html b/lib_client_onNotification.js.html index 062230e6..1f7c88ed 100644 --- a/lib_client_onNotification.js.html +++ b/lib_client_onNotification.js.html @@ -129,7 +129,7 @@ diff --git a/lib_client_setAPIKey.js.html b/lib_client_setAPIKey.js.html index 61140f99..5ded22e4 100644 --- a/lib_client_setAPIKey.js.html +++ b/lib_client_setAPIKey.js.html @@ -129,7 +129,7 @@ diff --git a/lib_client_setCookie.js.html b/lib_client_setCookie.js.html index e5e5400b..00da4e22 100644 --- a/lib_client_setCookie.js.html +++ b/lib_client_setCookie.js.html @@ -129,7 +129,7 @@ @@ -147,7 +147,7 @@

lib/client/setCookie.js

const options = require('../options.js')
-const getCurrentUser = require('../util/getCurrentUser.js').func
+const getAuthenticatedUser = require('../util/getAuthenticatedUser.js').func
 
 exports.required = ['cookie']
 exports.optional = ['validate']
@@ -159,7 +159,7 @@ 

lib/client/setCookie.js

* @alias setCookie * @param {string} cookie - The cookie to sign in with. * @param {boolean=} [validate=true] - Whether to validate the cookie or not. - * @returns {Promise<LoggedInUserData>} + * @returns {Promise<AuthenticatedUserData>} * @example const noblox = require("noblox.js") * noblox.setCookie("cookie").then(function() { * //your code here @@ -176,7 +176,7 @@

lib/client/setCookie.js

return false } try { - const res = await getCurrentUser({ jar: { session: args.cookie } }) + const res = await getAuthenticatedUser({ jar: { session: args.cookie } }) options.jar.session = args.cookie return res } catch (error) { diff --git a/lib_datastores_deleteDatastoreEntry.js.html b/lib_datastores_deleteDatastoreEntry.js.html index d7c522f5..831acd82 100644 --- a/lib_datastores_deleteDatastoreEntry.js.html +++ b/lib_datastores_deleteDatastoreEntry.js.html @@ -129,7 +129,7 @@ diff --git a/lib_datastores_getDatastoreEntry.js.html b/lib_datastores_getDatastoreEntry.js.html index 0714c304..32c3d9fe 100644 --- a/lib_datastores_getDatastoreEntry.js.html +++ b/lib_datastores_getDatastoreEntry.js.html @@ -129,7 +129,7 @@ diff --git a/lib_datastores_getDatastoreEntryVersions.js.html b/lib_datastores_getDatastoreEntryVersions.js.html index 92fb050f..fa2465d0 100644 --- a/lib_datastores_getDatastoreEntryVersions.js.html +++ b/lib_datastores_getDatastoreEntryVersions.js.html @@ -129,7 +129,7 @@ diff --git a/lib_datastores_getDatastoreKeys.js.html b/lib_datastores_getDatastoreKeys.js.html index 7628d7a2..a0c25aa8 100644 --- a/lib_datastores_getDatastoreKeys.js.html +++ b/lib_datastores_getDatastoreKeys.js.html @@ -129,7 +129,7 @@ diff --git a/lib_datastores_getDatastores.js.html b/lib_datastores_getDatastores.js.html index d3aa8e85..555a1b8f 100644 --- a/lib_datastores_getDatastores.js.html +++ b/lib_datastores_getDatastores.js.html @@ -129,7 +129,7 @@ diff --git a/lib_datastores_incrementDatastoreEntry.js.html b/lib_datastores_incrementDatastoreEntry.js.html index 8e2a8ab4..41096202 100644 --- a/lib_datastores_incrementDatastoreEntry.js.html +++ b/lib_datastores_incrementDatastoreEntry.js.html @@ -129,7 +129,7 @@ diff --git a/lib_datastores_setDatastoreEntry.js.html b/lib_datastores_setDatastoreEntry.js.html index 9e00182b..afd50863 100644 --- a/lib_datastores_setDatastoreEntry.js.html +++ b/lib_datastores_setDatastoreEntry.js.html @@ -129,7 +129,7 @@ diff --git a/lib_develop_canManage.js.html b/lib_develop_canManage.js.html index a6cc3970..2feaa48b 100644 --- a/lib_develop_canManage.js.html +++ b/lib_develop_canManage.js.html @@ -129,7 +129,7 @@ diff --git a/lib_develop_configureItem.js.html b/lib_develop_configureItem.js.html index 299899c0..1d93791c 100644 --- a/lib_develop_configureItem.js.html +++ b/lib_develop_configureItem.js.html @@ -129,7 +129,7 @@ diff --git a/lib_develop_updateUniverse.js.html b/lib_develop_updateUniverse.js.html index f1dab4aa..6872cdd8 100644 --- a/lib_develop_updateUniverse.js.html +++ b/lib_develop_updateUniverse.js.html @@ -129,7 +129,7 @@ diff --git a/lib_develop_updateUniverseAccess.js.html b/lib_develop_updateUniverseAccess.js.html index 8fb62bf0..e6e3d9d1 100644 --- a/lib_develop_updateUniverseAccess.js.html +++ b/lib_develop_updateUniverseAccess.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_buy.js.html b/lib_economy_buy.js.html index bad88a0d..470c59ea 100644 --- a/lib_economy_buy.js.html +++ b/lib_economy_buy.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_getGroupFunds.js.html b/lib_economy_getGroupFunds.js.html index e3dfe371..f57a17d0 100644 --- a/lib_economy_getGroupFunds.js.html +++ b/lib_economy_getGroupFunds.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_getGroupRevenueSummary.js.html b/lib_economy_getGroupRevenueSummary.js.html index 2522f8d3..3745d81c 100644 --- a/lib_economy_getGroupRevenueSummary.js.html +++ b/lib_economy_getGroupRevenueSummary.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_getGroupTransactions.js.html b/lib_economy_getGroupTransactions.js.html index 38207f69..f9a1b286 100644 --- a/lib_economy_getGroupTransactions.js.html +++ b/lib_economy_getGroupTransactions.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_getResaleData.js.html b/lib_economy_getResaleData.js.html index df208f51..f35b7ef9 100644 --- a/lib_economy_getResaleData.js.html +++ b/lib_economy_getResaleData.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_getResellers.js.html b/lib_economy_getResellers.js.html index 0436e942..1e12c7b0 100644 --- a/lib_economy_getResellers.js.html +++ b/lib_economy_getResellers.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_getUserFunds.js.html b/lib_economy_getUserFunds.js.html new file mode 100644 index 00000000..16c8adcb --- /dev/null +++ b/lib_economy_getUserFunds.js.html @@ -0,0 +1,214 @@ + + + + + + + + + + + + + noblox.js lib/economy/getUserFunds.js + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

lib/economy/getUserFunds.js

+
+ + + + + +
+
+
// Includes
+const http = require('../util/http.js').func
+
+// Args
+exports.required = ['userId']
+exports.optional = ['jar']
+
+// Docs
+/**
+ * 🔓 Gets the amount of robux for the authenticated user.
+ * @category User
+ * @param {number} userId - Must match the userId of the authenticated user
+ * @alias getUserFunds
+ * @returns {Promise<number>}
+ * @example const noblox = require("noblox.js")
+ * // Login using your cookie
+ * const currentUser = await noblox.setCookie(process.env.ROBLOXCOOKIE)
+ * const robux = await noblox.getUserFunds(currentUser.id)
+ */
+
+// Define
+function getUserFunds (userId, jar) {
+  return http({
+    url: `//economy.roblox.com/v1/users/${userId}/currency`,
+    options: {
+      jar,
+      resolveWithFullResponse: true
+    }
+  })
+    .then(({ statusCode, body }) => {
+      const { robux, errors } = JSON.parse(body)
+      if (statusCode === 200) {
+        return robux
+      } else if (statusCode === 400 || statusCode === 403) {
+        throw new Error(`${errors[0].message} | userId: ${userId}`)
+      } else {
+        throw new Error(`An unknown error occurred with getUserFunds() | [${statusCode}] userId: ${userId}`)
+      }
+    })
+}
+
+exports.func = function ({ userId, jar }) {
+  return getUserFunds(userId, jar)
+}
+
+
+
+ + + + +
+ +
+
+
+
+ + + + + + + + + diff --git a/lib_economy_getUserTransactions.js.html b/lib_economy_getUserTransactions.js.html index 4dc85e22..ae02237b 100644 --- a/lib_economy_getUserTransactions.js.html +++ b/lib_economy_getUserTransactions.js.html @@ -129,7 +129,7 @@ diff --git a/lib_economy_onGroupTransaction.js.html b/lib_economy_onGroupTransaction.js.html index 01abd6a2..6e62929a 100644 --- a/lib_economy_onGroupTransaction.js.html +++ b/lib_economy_onGroupTransaction.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_acceptFriendRequest.js.html b/lib_friends_acceptFriendRequest.js.html index 0353bd96..24b5db39 100644 --- a/lib_friends_acceptFriendRequest.js.html +++ b/lib_friends_acceptFriendRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_declineAllFriendRequests.js.html b/lib_friends_declineAllFriendRequests.js.html index 1b34a119..cae7e4e5 100644 --- a/lib_friends_declineAllFriendRequests.js.html +++ b/lib_friends_declineAllFriendRequests.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_declineFriendRequest.js.html b/lib_friends_declineFriendRequest.js.html index 185399ad..d77c3378 100644 --- a/lib_friends_declineFriendRequest.js.html +++ b/lib_friends_declineFriendRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_getFollowers.js.html b/lib_friends_getFollowers.js.html index f8454a88..9d6c2ae3 100644 --- a/lib_friends_getFollowers.js.html +++ b/lib_friends_getFollowers.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_getFollowings.js.html b/lib_friends_getFollowings.js.html index 9f3efcc3..1ad14fa2 100644 --- a/lib_friends_getFollowings.js.html +++ b/lib_friends_getFollowings.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_getFriendRequests.js.html b/lib_friends_getFriendRequests.js.html index bb2d4ef5..d4bfffa0 100644 --- a/lib_friends_getFriendRequests.js.html +++ b/lib_friends_getFriendRequests.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_getFriends.js.html b/lib_friends_getFriends.js.html index 231a8c8e..e3172f8d 100644 --- a/lib_friends_getFriends.js.html +++ b/lib_friends_getFriends.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_onFriendRequest.js.html b/lib_friends_onFriendRequest.js.html index 3e8fe9ec..fc143388 100644 --- a/lib_friends_onFriendRequest.js.html +++ b/lib_friends_onFriendRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_removeFriend.js.html b/lib_friends_removeFriend.js.html index 3a65d577..e308230a 100644 --- a/lib_friends_removeFriend.js.html +++ b/lib_friends_removeFriend.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_sendFriendRequest.js.html b/lib_friends_sendFriendRequest.js.html index 9c0a78e7..5099b56b 100644 --- a/lib_friends_sendFriendRequest.js.html +++ b/lib_friends_sendFriendRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_friends_unfollow.js.html b/lib_friends_unfollow.js.html index 40a96bdd..a34e0405 100644 --- a/lib_friends_unfollow.js.html +++ b/lib_friends_unfollow.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_addDeveloperProduct.js.html b/lib_games_addDeveloperProduct.js.html index d845bb7f..7ddde629 100644 --- a/lib_games_addDeveloperProduct.js.html +++ b/lib_games_addDeveloperProduct.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_configureGamePass.js.html b/lib_games_configureGamePass.js.html index 510636d9..24cb8a48 100644 --- a/lib_games_configureGamePass.js.html +++ b/lib_games_configureGamePass.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getDeveloperProducts.js.html b/lib_games_getDeveloperProducts.js.html index 133be262..18c05eaf 100644 --- a/lib_games_getDeveloperProducts.js.html +++ b/lib_games_getDeveloperProducts.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getGameInstances.js.html b/lib_games_getGameInstances.js.html index eafeb522..58d269a3 100644 --- a/lib_games_getGameInstances.js.html +++ b/lib_games_getGameInstances.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getGamePasses.js.html b/lib_games_getGamePasses.js.html index d92589c7..b189f8b1 100644 --- a/lib_games_getGamePasses.js.html +++ b/lib_games_getGamePasses.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getGameRevenue.js.html b/lib_games_getGameRevenue.js.html index ddf8c22a..1b5cb31c 100644 --- a/lib_games_getGameRevenue.js.html +++ b/lib_games_getGameRevenue.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getGameSocialLinks.js.html b/lib_games_getGameSocialLinks.js.html index d8634f87..b3cd274e 100644 --- a/lib_games_getGameSocialLinks.js.html +++ b/lib_games_getGameSocialLinks.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getGroupGames.js.html b/lib_games_getGroupGames.js.html index 29fd8b54..fc00d56f 100644 --- a/lib_games_getGroupGames.js.html +++ b/lib_games_getGroupGames.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getPlaceInfo.js.html b/lib_games_getPlaceInfo.js.html index fffcb57b..224bab4d 100644 --- a/lib_games_getPlaceInfo.js.html +++ b/lib_games_getPlaceInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_getUniverseInfo.js.html b/lib_games_getUniverseInfo.js.html index a2678486..f4174890 100644 --- a/lib_games_getUniverseInfo.js.html +++ b/lib_games_getUniverseInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_publishToTopic.js.html b/lib_games_publishToTopic.js.html index 559a8b8e..4777deb3 100644 --- a/lib_games_publishToTopic.js.html +++ b/lib_games_publishToTopic.js.html @@ -129,7 +129,7 @@ diff --git a/lib_games_updateDeveloperProduct.js.html b/lib_games_updateDeveloperProduct.js.html index d8e99593..585886e1 100644 --- a/lib_games_updateDeveloperProduct.js.html +++ b/lib_games_updateDeveloperProduct.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_changeRank.js.html b/lib_groups_changeRank.js.html index 55bd1343..e18e4e7c 100644 --- a/lib_groups_changeRank.js.html +++ b/lib_groups_changeRank.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_deleteWallPost.js.html b/lib_groups_deleteWallPost.js.html index c46c8760..c0358dc2 100644 --- a/lib_groups_deleteWallPost.js.html +++ b/lib_groups_deleteWallPost.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_deleteWallPostsByUser.js.html b/lib_groups_deleteWallPostsByUser.js.html index 0e51301d..77e9122c 100644 --- a/lib_groups_deleteWallPostsByUser.js.html +++ b/lib_groups_deleteWallPostsByUser.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_demote.js.html b/lib_groups_demote.js.html index 0af4fe3a..12208187 100644 --- a/lib_groups_demote.js.html +++ b/lib_groups_demote.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_exile.js.html b/lib_groups_exile.js.html index 6bd90c1a..df2f4852 100644 --- a/lib_groups_exile.js.html +++ b/lib_groups_exile.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getAuditLog.js.html b/lib_groups_getAuditLog.js.html index 1c8e708d..6dc6d83d 100644 --- a/lib_groups_getAuditLog.js.html +++ b/lib_groups_getAuditLog.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getGroup.js.html b/lib_groups_getGroup.js.html index 7eb36273..c4609271 100644 --- a/lib_groups_getGroup.js.html +++ b/lib_groups_getGroup.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getGroupSocialLinks.js.html b/lib_groups_getGroupSocialLinks.js.html index 22234d1d..43bbada2 100644 --- a/lib_groups_getGroupSocialLinks.js.html +++ b/lib_groups_getGroupSocialLinks.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getGroups.js.html b/lib_groups_getGroups.js.html index 3da5e05b..4fe7c330 100644 --- a/lib_groups_getGroups.js.html +++ b/lib_groups_getGroups.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getJoinRequest.js.html b/lib_groups_getJoinRequest.js.html index 41976040..2a5b2aa6 100644 --- a/lib_groups_getJoinRequest.js.html +++ b/lib_groups_getJoinRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getJoinRequests.js.html b/lib_groups_getJoinRequests.js.html index a9dbbdb2..6267bd45 100644 --- a/lib_groups_getJoinRequests.js.html +++ b/lib_groups_getJoinRequests.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getPlayers.js.html b/lib_groups_getPlayers.js.html index 690aba8b..037145b6 100644 --- a/lib_groups_getPlayers.js.html +++ b/lib_groups_getPlayers.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getRankInGroup.js.html b/lib_groups_getRankInGroup.js.html index 343eacf6..8dcdcd29 100644 --- a/lib_groups_getRankInGroup.js.html +++ b/lib_groups_getRankInGroup.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getRankNameInGroup.js.html b/lib_groups_getRankNameInGroup.js.html index 6ab6832f..35ab71c8 100644 --- a/lib_groups_getRankNameInGroup.js.html +++ b/lib_groups_getRankNameInGroup.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getRole.js.html b/lib_groups_getRole.js.html index fc229ef0..af5d6f84 100644 --- a/lib_groups_getRole.js.html +++ b/lib_groups_getRole.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getRolePermissions.js.html b/lib_groups_getRolePermissions.js.html index 4d8782f9..248d9315 100644 --- a/lib_groups_getRolePermissions.js.html +++ b/lib_groups_getRolePermissions.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getRoles.js.html b/lib_groups_getRoles.js.html index b127a387..a577a9cc 100644 --- a/lib_groups_getRoles.js.html +++ b/lib_groups_getRoles.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getShout.js.html b/lib_groups_getShout.js.html index a5b1ebff..c2430bc1 100644 --- a/lib_groups_getShout.js.html +++ b/lib_groups_getShout.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_getWall.js.html b/lib_groups_getWall.js.html index f6917ff7..7d7cc740 100644 --- a/lib_groups_getWall.js.html +++ b/lib_groups_getWall.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_groupPayout.js.html b/lib_groups_groupPayout.js.html index 27e60a4d..7d83cc92 100644 --- a/lib_groups_groupPayout.js.html +++ b/lib_groups_groupPayout.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_handleJoinRequest.js.html b/lib_groups_handleJoinRequest.js.html index c63df3d8..b6478e4f 100644 --- a/lib_groups_handleJoinRequest.js.html +++ b/lib_groups_handleJoinRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_leaveGroup.js.html b/lib_groups_leaveGroup.js.html index ab086b0e..fa83fdd1 100644 --- a/lib_groups_leaveGroup.js.html +++ b/lib_groups_leaveGroup.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_onAuditLog.js.html b/lib_groups_onAuditLog.js.html index 3779ea94..31e662eb 100644 --- a/lib_groups_onAuditLog.js.html +++ b/lib_groups_onAuditLog.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_onJoinRequest.js.html b/lib_groups_onJoinRequest.js.html index 5ecff64b..f4f1532a 100644 --- a/lib_groups_onJoinRequest.js.html +++ b/lib_groups_onJoinRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_onJoinRequestHandle.js.html b/lib_groups_onJoinRequestHandle.js.html index e1a0378b..04b8cdbf 100644 --- a/lib_groups_onJoinRequestHandle.js.html +++ b/lib_groups_onJoinRequestHandle.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_onShout.js.html b/lib_groups_onShout.js.html index aad8e0ba..4e17c96f 100644 --- a/lib_groups_onShout.js.html +++ b/lib_groups_onShout.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_onWallPost.js.html b/lib_groups_onWallPost.js.html index 08b365ce..163202c8 100644 --- a/lib_groups_onWallPost.js.html +++ b/lib_groups_onWallPost.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_promote.js.html b/lib_groups_promote.js.html index 9ffae1f0..54dfe0c6 100644 --- a/lib_groups_promote.js.html +++ b/lib_groups_promote.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_searchGroups.js.html b/lib_groups_searchGroups.js.html index 6b4437fe..bf8a73d5 100644 --- a/lib_groups_searchGroups.js.html +++ b/lib_groups_searchGroups.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_setGroupDescription.js.html b/lib_groups_setGroupDescription.js.html index 62dfdf80..76fdf1b3 100644 --- a/lib_groups_setGroupDescription.js.html +++ b/lib_groups_setGroupDescription.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_setGroupName.js.html b/lib_groups_setGroupName.js.html index 7a845910..f694543d 100644 --- a/lib_groups_setGroupName.js.html +++ b/lib_groups_setGroupName.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_setRank.js.html b/lib_groups_setRank.js.html index b087b0c4..68c3c5c9 100644 --- a/lib_groups_setRank.js.html +++ b/lib_groups_setRank.js.html @@ -129,7 +129,7 @@ diff --git a/lib_groups_shout.js.html b/lib_groups_shout.js.html index aeeefd49..d99f614f 100644 --- a/lib_groups_shout.js.html +++ b/lib_groups_shout.js.html @@ -129,7 +129,7 @@ diff --git a/lib_internal_timeout.js.html b/lib_internal_timeout.js.html index 37cecaea..44ff5ce4 100644 --- a/lib_internal_timeout.js.html +++ b/lib_internal_timeout.js.html @@ -129,7 +129,7 @@ diff --git a/lib_inventory_getCollectibles.js.html b/lib_inventory_getCollectibles.js.html index c71e24ad..c40f6cb0 100644 --- a/lib_inventory_getCollectibles.js.html +++ b/lib_inventory_getCollectibles.js.html @@ -129,7 +129,7 @@ diff --git a/lib_inventory_getInventory.js.html b/lib_inventory_getInventory.js.html index 9059c11a..ca43cb03 100644 --- a/lib_inventory_getInventory.js.html +++ b/lib_inventory_getInventory.js.html @@ -129,7 +129,7 @@ diff --git a/lib_inventory_getInventoryById.js.html b/lib_inventory_getInventoryById.js.html index af7704cd..01464d96 100644 --- a/lib_inventory_getInventoryById.js.html +++ b/lib_inventory_getInventoryById.js.html @@ -129,7 +129,7 @@ diff --git a/lib_inventory_getOwnership.js.html b/lib_inventory_getOwnership.js.html index cf21f7eb..a9f1cf32 100644 --- a/lib_inventory_getOwnership.js.html +++ b/lib_inventory_getOwnership.js.html @@ -129,7 +129,7 @@ diff --git a/lib_inventory_getUAIDs.js.html b/lib_inventory_getUAIDs.js.html index 386e9547..bf761b41 100644 --- a/lib_inventory_getUAIDs.js.html +++ b/lib_inventory_getUAIDs.js.html @@ -129,7 +129,7 @@ diff --git a/lib_itemconfiguration_getGroupAssets.js.html b/lib_itemconfiguration_getGroupAssets.js.html index d5cb79a1..87dd48c6 100644 --- a/lib_itemconfiguration_getGroupAssets.js.html +++ b/lib_itemconfiguration_getGroupAssets.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartyDeleted.js.html b/lib_party_onPartyDeleted.js.html index d82e9bc5..817c81c2 100644 --- a/lib_party_onPartyDeleted.js.html +++ b/lib_party_onPartyDeleted.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartyInvite.js.html b/lib_party_onPartyInvite.js.html index e6a66513..4c39ef2b 100644 --- a/lib_party_onPartyInvite.js.html +++ b/lib_party_onPartyInvite.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartyJoinedGame.js.html b/lib_party_onPartyJoinedGame.js.html index 798f216a..54f2b108 100644 --- a/lib_party_onPartyJoinedGame.js.html +++ b/lib_party_onPartyJoinedGame.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartyLeftGame.js.html b/lib_party_onPartyLeftGame.js.html index 8dd9b78f..37b3d76d 100644 --- a/lib_party_onPartyLeftGame.js.html +++ b/lib_party_onPartyLeftGame.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartySelfJoined.js.html b/lib_party_onPartySelfJoined.js.html index e3e33ea0..3cdd769f 100644 --- a/lib_party_onPartySelfJoined.js.html +++ b/lib_party_onPartySelfJoined.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartySelfLeft.js.html b/lib_party_onPartySelfLeft.js.html index e457c69d..4397f44d 100644 --- a/lib_party_onPartySelfLeft.js.html +++ b/lib_party_onPartySelfLeft.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartyUserJoined.js.html b/lib_party_onPartyUserJoined.js.html index 0b0df57d..833e0277 100644 --- a/lib_party_onPartyUserJoined.js.html +++ b/lib_party_onPartyUserJoined.js.html @@ -129,7 +129,7 @@ diff --git a/lib_party_onPartyUserLeft.js.html b/lib_party_onPartyUserLeft.js.html index a33a3a8d..74ea64db 100644 --- a/lib_party_onPartyUserLeft.js.html +++ b/lib_party_onPartyUserLeft.js.html @@ -129,7 +129,7 @@ diff --git a/lib_premiumfeatures_getPremium.js.html b/lib_premiumfeatures_getPremium.js.html index 927e8b71..a129de53 100644 --- a/lib_premiumfeatures_getPremium.js.html +++ b/lib_premiumfeatures_getPremium.js.html @@ -129,7 +129,7 @@ diff --git a/lib_presence_getPresences.js.html b/lib_presence_getPresences.js.html index a0938c6c..2a6765ac 100644 --- a/lib_presence_getPresences.js.html +++ b/lib_presence_getPresences.js.html @@ -129,7 +129,7 @@ diff --git a/lib_privatemessages_getMessages.js.html b/lib_privatemessages_getMessages.js.html index 60b0e0a1..3e7f4cba 100644 --- a/lib_privatemessages_getMessages.js.html +++ b/lib_privatemessages_getMessages.js.html @@ -129,7 +129,7 @@ diff --git a/lib_privatemessages_message.js.html b/lib_privatemessages_message.js.html index 0bcd97c9..870b5393 100644 --- a/lib_privatemessages_message.js.html +++ b/lib_privatemessages_message.js.html @@ -129,7 +129,7 @@ diff --git a/lib_privatemessages_onMessage.js.html b/lib_privatemessages_onMessage.js.html index 13a0f6f8..68c5ef1e 100644 --- a/lib_privatemessages_onMessage.js.html +++ b/lib_privatemessages_onMessage.js.html @@ -129,7 +129,7 @@ diff --git a/lib_thumbnails_getLogo.js.html b/lib_thumbnails_getLogo.js.html index 0514fd09..d933755d 100644 --- a/lib_thumbnails_getLogo.js.html +++ b/lib_thumbnails_getLogo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_thumbnails_getPlayerThumbnail.js.html b/lib_thumbnails_getPlayerThumbnail.js.html index 934a394d..a425914b 100644 --- a/lib_thumbnails_getPlayerThumbnail.js.html +++ b/lib_thumbnails_getPlayerThumbnail.js.html @@ -129,7 +129,7 @@ diff --git a/lib_thumbnails_getThumbnails.js.html b/lib_thumbnails_getThumbnails.js.html index 03bbb83c..e3c2c126 100644 --- a/lib_thumbnails_getThumbnails.js.html +++ b/lib_thumbnails_getThumbnails.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_acceptTrade.js.html b/lib_trades_acceptTrade.js.html index fa6e68cb..c9c82f09 100644 --- a/lib_trades_acceptTrade.js.html +++ b/lib_trades_acceptTrade.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_canTradeWith.js.html b/lib_trades_canTradeWith.js.html index b43de46d..f8a109b1 100644 --- a/lib_trades_canTradeWith.js.html +++ b/lib_trades_canTradeWith.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_counterTrade.js.html b/lib_trades_counterTrade.js.html index 5b7ef8f2..0768ab98 100644 --- a/lib_trades_counterTrade.js.html +++ b/lib_trades_counterTrade.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_declineTrade.js.html b/lib_trades_declineTrade.js.html index 48586c97..815ab544 100644 --- a/lib_trades_declineTrade.js.html +++ b/lib_trades_declineTrade.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_getTradeInfo.js.html b/lib_trades_getTradeInfo.js.html index d2afcd15..e1ad1372 100644 --- a/lib_trades_getTradeInfo.js.html +++ b/lib_trades_getTradeInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_getTrades.js.html b/lib_trades_getTrades.js.html index 3978ccfa..b5c34715 100644 --- a/lib_trades_getTrades.js.html +++ b/lib_trades_getTrades.js.html @@ -129,7 +129,7 @@ diff --git a/lib_trades_sendTrade.js.html b/lib_trades_sendTrade.js.html index 1ce612f0..9bbbfbe3 100644 --- a/lib_trades_sendTrade.js.html +++ b/lib_trades_sendTrade.js.html @@ -129,7 +129,7 @@ diff --git a/lib_users_getBlurb.js.html b/lib_users_getBlurb.js.html index 489be19c..76888830 100644 --- a/lib_users_getBlurb.js.html +++ b/lib_users_getBlurb.js.html @@ -129,7 +129,7 @@ diff --git a/lib_users_getIdFromUsername.js.html b/lib_users_getIdFromUsername.js.html index 7876ada3..6df0bcaa 100644 --- a/lib_users_getIdFromUsername.js.html +++ b/lib_users_getIdFromUsername.js.html @@ -129,7 +129,7 @@ diff --git a/lib_users_getPlayerInfo.js.html b/lib_users_getPlayerInfo.js.html index c9527d06..add39c2b 100644 --- a/lib_users_getPlayerInfo.js.html +++ b/lib_users_getPlayerInfo.js.html @@ -129,7 +129,7 @@ diff --git a/lib_users_getUsernameFromId.js.html b/lib_users_getUsernameFromId.js.html index 8cc7449d..19f23822 100644 --- a/lib_users_getUsernameFromId.js.html +++ b/lib_users_getUsernameFromId.js.html @@ -129,7 +129,7 @@ diff --git a/lib_users_onBlurbChange.js.html b/lib_users_onBlurbChange.js.html index 67093a7b..db41b63d 100644 --- a/lib_users_onBlurbChange.js.html +++ b/lib_users_onBlurbChange.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_clearSession.js.html b/lib_util_clearSession.js.html index a2ecbf63..69768f2e 100644 --- a/lib_util_clearSession.js.html +++ b/lib_util_clearSession.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_generalRequest.js.html b/lib_util_generalRequest.js.html index 3dd97e3f..f74bc638 100644 --- a/lib_util_generalRequest.js.html +++ b/lib_util_generalRequest.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getAction.js.html b/lib_util_getAction.js.html index 48bd6634..4cd6e691 100644 --- a/lib_util_getAction.js.html +++ b/lib_util_getAction.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getAuthenticatedUser.js.html b/lib_util_getAuthenticatedUser.js.html index 6d3c0c63..d32009d9 100644 --- a/lib_util_getAuthenticatedUser.js.html +++ b/lib_util_getAuthenticatedUser.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getCurrentUser.js.html b/lib_util_getCurrentUser.js.html index d60e7f7f..56268eb3 100644 --- a/lib_util_getCurrentUser.js.html +++ b/lib_util_getCurrentUser.js.html @@ -129,7 +129,7 @@ @@ -147,9 +147,10 @@

lib/util/getCurrentUser.js

// Includes
-const http = require('./http.js').func
+const settings = require('../../settings.json')
+
+const noblox = require('../index.js')
 
-// Args
 exports.optional = ['option', 'jar']
 
 // Docs
@@ -160,6 +161,7 @@ 

lib/util/getCurrentUser.js

* @param {string=} option - A specific option to return. * @returns {LoggedInUserData} * @example const noblox = require("noblox.js") + * @deprecated getCurrentUser() is deprecated; see getAuthenticatedUser(), getPremium(), getThumbnails(), getUserFunds() instead | August 27, 2024 - https://devforum.roblox.com/t/official-list-of-deprecated-web-endpoints/62889/66 * // Login using your cookie. * const user = await noblox.getCurrentUser() **/ @@ -168,23 +170,35 @@

lib/util/getCurrentUser.js

exports.func = async function (args) { const jar = args.jar const option = args.option - const httpOpt = { - url: '//www.roblox.com/mobileapi/userinfo', - options: { - resolveWithFullResponse: true, - method: 'GET', - followRedirect: true, - jar - } + if (settings.show_deprecation_warnings) { + console.warn('[DEPRECATED]: getCurrentUser() is deprecated by Roblox; use getAuthenticatedUser(), getPremium(), getThumbnails(), or getUserFunds() instead!') + console.warn(' > Opt out of these warnings using noblox.setOptions({ show_deprecation_warnings: false })') } - const res = await http(httpOpt) - if (res.statusCode !== 200) { - throw new Error('You are not logged in.') + + const currentUser = await noblox.getAuthenticatedUser(jar) + const [premiumStatus, thumbnailResponse, robuxBalance] = await Promise.all( + [ + noblox.getPremium(currentUser.id, jar), + noblox.getPlayerThumbnail(currentUser.id, '352x352', 'png', false, 'Body', jar), + noblox.getUserFunds(currentUser.id, jar) + ] + ) + + const json = { + UserID: currentUser.id, + UserName: currentUser.name, + RobuxBalance: robuxBalance, + ThumbnailUrl: thumbnailResponse[0].imageUrl, + IsAnyBuildersClubMember: false, + IsPremium: premiumStatus, + DEPRECATION_WARNING: '[DEPRECATED]: noblox.getCurrentUser() is deprecated; use getAuthenticatedUser(), getPremium(), getThumbnails(), or getUserFunds() instead!' } - const json = JSON.parse(res.body) + if (!option) { return json } + + // Support queried rgequests `getCurrentUser('UserID') -> only UserID` const searchKey = Object.keys(json).filter((key) => { return option.toLowerCase() === key.toLowerCase() })[0] diff --git a/lib_util_getGeneralToken.js.html b/lib_util_getGeneralToken.js.html index 82075aa2..fd3bcbff 100644 --- a/lib_util_getGeneralToken.js.html +++ b/lib_util_getGeneralToken.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getHash.js.html b/lib_util_getHash.js.html index a2f56c4c..967b2d83 100644 --- a/lib_util_getHash.js.html +++ b/lib_util_getHash.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getInputs.js.html b/lib_util_getInputs.js.html index 79c423aa..b3462717 100644 --- a/lib_util_getInputs.js.html +++ b/lib_util_getInputs.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getPageResults.js.html b/lib_util_getPageResults.js.html index e6aedd07..0fe26b35 100644 --- a/lib_util_getPageResults.js.html +++ b/lib_util_getPageResults.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getSenderUserId.js.html b/lib_util_getSenderUserId.js.html index a36245e9..80c4f877 100644 --- a/lib_util_getSenderUserId.js.html +++ b/lib_util_getSenderUserId.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getSession.js.html b/lib_util_getSession.js.html index 45d10e47..8517dac2 100644 --- a/lib_util_getSession.js.html +++ b/lib_util_getSession.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getVerification.js.html b/lib_util_getVerification.js.html index 7315672d..a69ccc31 100644 --- a/lib_util_getVerification.js.html +++ b/lib_util_getVerification.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_getVerificationInputs.js.html b/lib_util_getVerificationInputs.js.html index 48c4d871..d16c2740 100644 --- a/lib_util_getVerificationInputs.js.html +++ b/lib_util_getVerificationInputs.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_http.js.html b/lib_util_http.js.html index 4f8cebe8..12fd31f9 100644 --- a/lib_util_http.js.html +++ b/lib_util_http.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_jar.js.html b/lib_util_jar.js.html index 34032458..7212555c 100644 --- a/lib_util_jar.js.html +++ b/lib_util_jar.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_refreshCookie.js.html b/lib_util_refreshCookie.js.html index 33d5c556..80876c4d 100644 --- a/lib_util_refreshCookie.js.html +++ b/lib_util_refreshCookie.js.html @@ -129,7 +129,7 @@ diff --git a/lib_util_setOptions.js.html b/lib_util_setOptions.js.html index 65dd7d69..0653cce0 100644 --- a/lib_util_setOptions.js.html +++ b/lib_util_setOptions.js.html @@ -129,7 +129,7 @@ @@ -154,7 +154,7 @@

lib/util/setOptions.js

* altering the settings.json file. Objects passed to this function should match the format of the settings.json file. * Unknown keys, or malformed options will be rejected with an error. * @category Utility - * @param {NobloxOptions} newOptions - The new options to set, structured as per [settings.json](https://github.com/noblox/noblox.js/blob/master/settings.json) + * @param {Partial<NobloxOptions>} newOptions - The new options to set, structured as per [settings.json](https://github.com/noblox/noblox.js/blob/master/settings.json) * @returns void * @see [settings.json](https://github.com/noblox/noblox.js/blob/master/settings.json) - default package settings * @example const noblox = require("noblox.js") diff --git a/lib_util_shortPoll.js.html b/lib_util_shortPoll.js.html index d0e2492f..dc67f35d 100644 --- a/lib_util_shortPoll.js.html +++ b/lib_util_shortPoll.js.html @@ -129,7 +129,7 @@ diff --git a/typings_jsDocs.ts.html b/typings_jsDocs.ts.html index 1ca764ce..f9de930a 100644 --- a/typings_jsDocs.ts.html +++ b/typings_jsDocs.ts.html @@ -129,7 +129,7 @@ @@ -162,6 +162,9 @@

typings/jsDocs.ts

* NobloxOptions for setOptions, based from settings.json */ type NobloxOptions = { + /** Prints console warnings for functions that are being polyfilled by newer methods due to upstream Roblox API changes */ + show_deprecation_warnings: boolean; + /** Minimizes data usage and speed up requests by only saving session cookies, disable if you need other cookies to be saved as well. (Default: true) */ session_only: boolean; @@ -1522,9 +1525,8 @@

typings/jsDocs.ts

UserID: number, UserName: string, RobuxBalance: number, - TicketsBalance: number, ThumbnailUrl: string, - IsAnyBuildersClubMember: boolean, + IsAnyBuildersClubMember: false, IsPremium: boolean }