Hello,
I tried making an rank bot which is supposed to change the specific users roleset to an other one. I keep getting that one error: “{‘errors’: [{‘code’: 2, ‘message’: ‘The roleset is invaid or does not exist.’, ‘userFacingMessage’: ‘The roleset is invalid or does not exist.’}]}”
Appearentely it is invalid, when I test it on the doc site the roleset ID works fine.
The Script:
`
t = requests.request("PATCH", "https://groups.roblox.com/v1/groups/7166374/users/983009155" ,data={"body": json.dumps({"roleId": 45285892})}, cookies={".ROBLOSECURITY": SECURITY_TOKEN}, headers={"X-CSRF-TOKEN": x_csrf_token,'Content-Type': 'application/json'}).json()
print(t)
Answers are appreciated.