Anyway to lookup a users old username after they’ve changed it

Is there a command I can make that will show me the old usernames of people

I copied this from an old command

“$(eval (() => { let api = $(urlfetch json$(querystring)); if (api.length === 0) { return User Not Found; } let output = []; for (let i = api.length-1; i >= 0; i–) { let { username_old, username_new } = api[i]; if (i === api.length - 1) output.push(username_old); output.push(username_new); } return ‘User Name Update: ’ + output.join(’ -> ') })();)”
But I get Right-hand side of ‘instanceof’ is not an object as a response. Need help

Hmm from what post is that piece of code? I think it should work fine.

Otherwise here’s a similar piece of code, that I just tested:

$(eval (() => {
    let api = $(urlfetch json$(querystring));
    if (api.length === 0) {
        return 'User Not Found';
    let user = api[api.length-1];
    return 'User Name Update: '+ user.username_old +' -> '+ user.username_new;

This is the response I get idk if I copied it wrong or what happened but it’s the same result

I figured out the issue thank you for the response :grin:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.