SDK Reference
Methods
Deprecated
GetGroupMembers

getGroupMembers

⚠️

Groups have been deprecated in favor of Contexts. If you're considering Groups for your project, check out createContext instead.


Returns an array of group members.

How to use?

const { data, error } = await orbis.getGroupMembers(group_id);

Parameters

  • group_id - (stream) ID of a group

Returns

/** Returns an array of members for a specific group_id */
[
  {
    stream_id: "k...",
    group_id: "k...",
    profile_details: {
      did: "did:pkh:...",
      profile: {
        pfp: "https://...",
        username: "Baptiste",
        description: "..."
      }
    }
  },
  ...
]