-
Notifications
You must be signed in to change notification settings - Fork 0
MemberManagement() Class
Loravis edited this page Nov 8, 2023
·
3 revisions
The MemberManagement class includes all methods needed to manage members within Roblox groups. It's found within the Robloxdotnet.Utilities.Groups namespace.
Updates a user's role in a Roblox group. Returns true if the change is successful and throws an exception if not.
- RobloxSession session
- ulong groupId
- ulong userId
- int role
RobloxSession session = new RobloxSession();
await session.LoginAsync("INSERT_YOUR_.ROBLOSECURITY_HERE");
await MemberManagement.SetUserGroupRole(session, 123456, 654321, 254);
Takes a Roblox user ID and returns a UserGroupInfo object.
- ulong userId
UserGroupInfo info = await MemberManagement.GetUserGroupInfo(123456);
foreach (UserGroupData data in info.data) {
Console.WriteLine(data.group.name);
}