Classic APIs
ClassicGroupsApi
groupRoles

groupRoles

Gets all roles in a group.

Parameters

NameTypeDescription
groupIdGroupIdThe id of the group to get roles for.

Example

const { data: roles } = await ClassicGroupsApi.groupRoles({ groupId: 5850082 }); 

Example Data

[
  {
    id: 38353814,
    name: "Guest",
    description: "A non-group member.",
    rank: 0,
    memberCount: 0,
  },
  {
    id: 38353811,
    name: "Owner",
    description: "",
    rank: 255,
    memberCount: 1,
  },
] 

Endpoint

GET /v1/groups/{groupId}/roles