Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.

BREAKING CHANGE: Groups methods overhaul#876

Merged
Neztore merged 17 commits into
noblox:nextfrom
Regalijan:fix-get-groups
Mar 29, 2026
Merged

BREAKING CHANGE: Groups methods overhaul#876
Neztore merged 17 commits into
noblox:nextfrom
Regalijan:fix-get-groups

Conversation

@Regalijan
Copy link
Copy Markdown
Member

  • getGroups is now getUserGroups
  • getUserGroups no longer polyfills, now returns what Roblox does
  • Primary group is now fetched using getPrimaryGroup
  • multigetPartialGroups now exists for retrieving partial information of up to 100 groups
  • Thumbnails are no longer included in the user groups response
  • getLogo now supports multiple group ids (and is backwards compatible)

Comment thread lib/groups/getUserGroups.js Outdated
Comment thread lib/groups/getPrimaryGroup.js Outdated
* @category User
* @alias getPrimaryGroup
* @param {number} userId - The ID of the user.
* @returns {Promise<Group>}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it? Or does it return a GroupMemberInfo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Primary group endpoint returns whole group object.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://groups.roblox.com/v1/users/66592931/groups/primary/role

{"group":{"id":3812352,"name":"Polaris Incorporated","description":"Polaris incorporated. The Polaris bot will shut down on the First of March 2022. Thank you all for coming along for the ride. We're proud of what we achieved: From a Project that didn't set out to achieve much at all, except be a hobby of mine.","owner":{"hasVerifiedBadge":false,"userId":66592931,"username":"Neztore","displayName":"Neztore"},"shout":null,"isBuildersClubOnly":false,"publicEntryAllowed":false,"hasVerifiedBadge":false,"hasSocialModules":true},"role":{"id":26008925,"name":"Dev","rank":255,"color":0}}

Isn't that a GroupMemberInfo?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up making a new type using the existing Group and Role types, since the primary group returns the full group object (which is not present in the GroupMemberInfo type)

Comment thread typings/index.d.ts
Comment thread typings/jsDocs.ts Outdated
@Regalijan Regalijan requested review from Neztore and removed request for alanbixby March 28, 2026 05:32
@Neztore Neztore added the major Increment the major version when merged label Mar 29, 2026
@Neztore Neztore merged commit b8c6f30 into noblox:next Mar 29, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

major Increment the major version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants