Home > @3rdweb/sdk > ModuleWithRoles > getAllRoleMembers
Call this to get get a list of addresses for all supported roles on the module.
Signature:
getAllRoleMembers(): Promise<Partial<Record<Role, string[]>>>;
Returns:
Promise<Partial<Record<Role, string[]>>>
A record of Roles to lists of addresses that are members of the given role.
If the module does not support roles this will throw an InvariantError.