1
0
forked from tommy/tommy-bot

add username history to user embed

This commit is contained in:
2023-08-07 11:49:08 -04:00
parent 5b7f48333e
commit 88f81208cc
2 changed files with 16 additions and 0 deletions

View File

@ -286,6 +286,14 @@ function API:GetUserOnlineStatus(USER_ID)
return response1
end
function API:GetUserUsernameHistory(USER_ID)
if not USER_ID then return 'empty id' end
local err, res = parseToURLArgs({limit=100})
if err then return err end
local response1 = http_request('GET', ROBLOX_API_URL..'users/'..USER_ID..'/username-history'..res,API_HEADER)
return response1
end
function API:GetBadgesAwardedDates(USER_ID,BADGE_LIST)
if not USER_ID then return 'empty id' end
local err,res = parseToURLArgs({badgeIds=table.concat(BADGE_LIST,',')})