diff --git a/lib/friends/getFollowerCount.js b/lib/friends/getFollowerCount.js index f24ec22e..49cf3cc8 100644 --- a/lib/friends/getFollowerCount.js +++ b/lib/friends/getFollowerCount.js @@ -16,9 +16,9 @@ exports.required = ['userId'] **/ // Define -exports.func = function (userId) { +exports.func = function (args) { const httpOpt = { - url: `//friends.roblox.com/v1/users/${userId}/followers/count`, + url: `//friends.roblox.com/v1/users/${args.userId}/followers/count`, options: { json: true, method: 'GET', diff --git a/lib/friends/getFollowingCount.js b/lib/friends/getFollowingCount.js index 70df5fd3..7a454839 100644 --- a/lib/friends/getFollowingCount.js +++ b/lib/friends/getFollowingCount.js @@ -16,9 +16,9 @@ exports.required = ['userId'] **/ // Define -exports.func = function (userId) { +exports.func = function (args) { const httpOpt = { - url: `//friends.roblox.com/v1/users/${userId}/followings/count`, + url: `//friends.roblox.com/v1/users/${args.userId}/followings/count`, options: { json: true, method: 'GET', diff --git a/lib/friends/getFriendCount.js b/lib/friends/getFriendCount.js index 4069f726..912dd1ff 100644 --- a/lib/friends/getFriendCount.js +++ b/lib/friends/getFriendCount.js @@ -16,9 +16,9 @@ exports.required = ['userId'] **/ // Define -exports.func = function (userId) { +exports.func = function (args) { const httpOpt = { - url: `//friends.roblox.com/v1/users/${userId}/friends/count`, + url: `//friends.roblox.com/v1/users/${args.userId}/friends/count`, options: { json: true, method: 'GET', diff --git a/lib/users/getPlayerInfo.js b/lib/users/getPlayerInfo.js index d1d5f769..1176836f 100644 --- a/lib/users/getPlayerInfo.js +++ b/lib/users/getPlayerInfo.js @@ -22,10 +22,10 @@ exports.required = ['userId'] function getPlayerInfo (userId) { return new Promise((resolve, reject) => { const requests = [ - getUserInfo(userId), - getFriendCount(userId), - getFollowingCount(userId), - getFollowerCount(userId), + getUserInfo({ userId }), + getFriendCount({ userId }), + getFollowingCount({ userId }), + getFollowerCount({ userId }), ].map(promise => promise.then( val => ({ status: 'fulfilled', value: val }), rej => ({ status: 'rejected', reason: rej }) diff --git a/lib/users/getUserInfo.js b/lib/users/getUserInfo.js index edb94ab6..86af3f5d 100644 --- a/lib/users/getUserInfo.js +++ b/lib/users/getUserInfo.js @@ -14,9 +14,9 @@ exports.required = ['userId'] **/ // Define -exports.func = function (userId) { +exports.func = function (args) { const httpOpt = { - url: `//users.roblox.com/v1/users/${userId}`, + url: `//users.roblox.com/v1/users/${args.userId}`, options: { json: true, method: 'GET',