spacebarchat / spacebarchat/server
PUT /guilds/:id/roles/:id/members
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 323
- Avg merge
- 14h 48m
- Merged PRs (30d)
- 4
Description
To bulk replace all members of a role at once. Request format is otherwise identical to PATCH to the same path.
Unlike the PATCH method, this shall overwrite the existing memberships of the role.
Can be implemented internally as:
- Clone the role.
- Change the memberships in the new role.
- Swap the IDs.
- Delete the old role (the one now having bigger ID).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the requested PUT /guilds/:id/roles/:id/members behavior with PATCH on the same path. Trace the existing role membership update flow, then implement replacement semantics so the submitted memberships overwrite the current set; done means the endpoint accepts the PATCH-equivalent request format and leaves only the requested members assigned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100