Add kick endpoint
Note: doesnt kick only bans from lobby
POST /user/[TARGETUSERID]/moderations
{ "type": "kick", "targetUserId": "usr_1039a8fd-c172-4f58-9362-2f9642a1137f", "reason": "The instance owner was disappointed in you, you will not be coming back.", "created": "0001-01-01T00:00:00.0000000", "expires": "0001-01-01T00:00:00.0000000", "isPermanent": false, "worldId": "wrld_4b341546-65ff-4607-9d38-5b7f8f405132", "instanceId": "25221~group(grp_cc89bad1-5e9a-4d8e-8967-5b5bc6b61bd9)~groupAccessType(public)~region(us)" }
Feels like this could be a very dangerous endpoint if wrongly used
Feels like this could be a very dangerous endpoint if wrongly used
It can only be done by the owner of the lobby, it doesn't give you more power than being in the game does (except for more customisability I suppose)
Oh yeah, note to implementer, it has its own 429:
"{ "error": { "message": "Too many moderations being created at one player․", "status_code": 429 } }"
Returns {"error":{"message":"You cannot moderate this user․","status_code":403}} if target user is not in instance