Feel free to make PRs to fix/improve the discourse_api gem ![]()
The Discourse API is designed around the UI. It happens that admins
- often add users to a group via their username (hence the
add_membersmethod which requires a list ofusernames) - rarely remove users from a group and do so by clicking the
button next to the user (hence the remove_membermethod which requires auser_id)
Again, feel free to make PRs to update the Discourse API if you want to:
- add the
add_member/remove_membersmethods - allow either of these methods to take a
usernameor auser_idas parameter.