Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #424
This adds
POST /user/{userId}/moderationsascreateUserModeration.A kick doesn't remove the user from the instance. Once they leave, they can't join that instance again, even from an invite. I tested this with two of my accounts, once in a Friends+ instance and once in an Invite instance, and got the same result both times.
The kick only goes through when
worldIdandinstanceIdpoint at the instance the user is in. If either one is missing, or the user isn't there, the API returns403. The validator itself only requirestypeandreason, and thetypeenum comes from its error message. The payload in the issue also hastargetUserIdandcreated, but the API doesn't validate either one, so I left them out. Sending another moderation for the same user within about a minute (63 seconds in my tests) returns429.200403403403403429Requests and responses
User and world IDs are replaced with placeholders.
The new workflows cover
400,401,403,404and429, using the caller's own account and a user that doesn't exist, and they all pass. Because of the429,create-user-moderation-selffails if it runs twice within a minute. The200needs a second account inside the instance, so the suite can't cover it.