Members

Members

Provides APIs for managing members of the current group. Instances of this class should be obtained using Group.members.

Methods

add(user)

Description:
  • Adds the given user to the current group.

Source:
Parameters:
Name Type Description
user String | User

Name of the user or User object.

remove(user)

Description:
  • Removes the given user from the current group.

Source:
Parameters:
Name Type Description
user String | User

Name of the user or User object.

toArray() → {Array.<String>}

Description:
  • Returns a member list of the current group as an array of strings being the names of the users.

Source:
Returns:
Type
Array.<String>