Skip to content

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.

SetUserGroupRole

Updates a user's role in a Roblox group. Returns true if the change is successful and throws an exception if not.

Parameters

Usage

RobloxSession session = new RobloxSession();
await session.LoginAsync("INSERT_YOUR_.ROBLOSECURITY_HERE");
await MemberManagement.SetUserGroupRole(session, 123456, 654321, 254);

GetUserGroupInfo

Takes a Roblox user ID and returns a UserGroupInfo object.

Parameters

  • ulong userId

Usage

UserGroupInfo info = await MemberManagement.GetUserGroupInfo(123456); 
foreach (UserGroupData data in info.data) {
    Console.WriteLine(data.group.name);
}