API.moderateSetRole(userID, role)

If you are MANAGER (role 3) or above, you can set another user's permission level. Pass an API.ROLE constant. Valid values for roles are COHOST, MANAGER, BOUNCER, DJ, and NONE.

Promotion Permissions per Role

  Manager Co-Host Host
Resident DJ
Bouncer
Manager  
Co-Host    
Host    

API.ROLE

{ 
    "NONE": 0,
    "DJ": 1,
    "BOUNCER": 2,
    "MANAGER": 3,
    "COHOST": 4,
    "HOST": 5
}

USAGE

// promote to resident dj 
API.moderateSetRole(3703511, 1);
// promote to bouncer
API.moderateSetRole(3703511, 2);
// remove from staff
API.moderateSetRole(3703511, 0);

Comments

  • Avatar
    Proditor Magnus

    This API call does not seem to work. I had to use backend and risk ban as I couldnt use proper timing there. Luckily there wasnt ban this time.

    Managed to remove the 600 people from access list, and 270 of them within single minute.

Powered by Zendesk