show only 50 newest usernames

This commit is contained in:
dowoge 2023-08-07 12:13:24 -04:00
parent 88f81208cc
commit 7d1249f31f
No known key found for this signature in database
GPG Key ID: A868F67EA0425DD8

View File

@ -288,7 +288,7 @@ end
function API:GetUserUsernameHistory(USER_ID) function API:GetUserUsernameHistory(USER_ID)
if not USER_ID then return 'empty id' end if not USER_ID then return 'empty id' end
local err, res = parseToURLArgs({limit=100}) local err, res = parseToURLArgs({limit=50,sortOrder='Desc'})
if err then return err end if err then return err end
local response1 = http_request('GET', ROBLOX_API_URL..'users/'..USER_ID..'/username-history'..res,API_HEADER) local response1 = http_request('GET', ROBLOX_API_URL..'users/'..USER_ID..'/username-history'..res,API_HEADER)
return response1 return response1