Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement group relationship endpoints #124

Open
Jodenee opened this issue Oct 16, 2024 · 1 comment
Open

Implement group relationship endpoints #124

Jodenee opened this issue Oct 16, 2024 · 1 comment

Comments

@Jodenee
Copy link
Contributor

Jodenee commented Oct 16, 2024

Is your feature request related to a problem? Please describe.
Relationship endpoints for groups are not implemented.

If your feature is related to implementing a new Roblox API, provide information here.

Group Relationship Docs

  • Relationship endpoints
    • GET /v1/groups/{groupId}/relationships/{groupRelationshipType} - get relationships
    • DELETE /v1/groups/{groupId}/relationships/{groupRelationshipType}/{relatedGroupId} - remove a relationship
    • POST /v1/groups/{groupId}/relationships/{groupRelationshipType}/{relatedGroupId} - request a relationship with another group
  • Relationship request endpoints
    • GET /v1/groups/{groupId}/relationships/{groupRelationshipType}/requests - get relationship requests
    • DELETE /v1/groups/{groupId}/relationships/{groupRelationshipType}/requests - batch remove relationship requests
    • POST /v1/groups/{groupId}/relationships/{groupRelationshipType}/requests - batch accept relationship requests
    • DELETE /v1/groups/{groupId}/relationships/{groupRelationshipType}/{relatedGroupId} - remove relationship request
    • POST /v1/groups/{groupId}/relationships/{groupRelationshipType}/requests/{relatedGroupId} - accept relationship request

Documented: Yes

Describe the solution you'd like

Add new enum GroupRelationType.

The following classes should be added

  • GroupRelationship
  • GroupRelationshipRequest

The following methods should be added

  • BaseGroup.get_relationships()
  • GroupRelationship.remove()
  • BaseGroup.request_relationship()
  • BaseGroup.get_relationship_requests()
  • BaseGroup.decline_relationship_requests()
  • BaseGroup.accept_relationship_requests()
  • GroupRelationshipRequest.decline()
  • GroupRelationshipRequest.accept()
@Jodenee
Copy link
Contributor Author

Jodenee commented Nov 5, 2024

I'll add this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant