Class: Members

Members

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

Methods

add(user)

Adds the given user to the current group.

Parameters:
Name Type Description
user String | User

Name of the user or User object.

remove(user)

Removes the given user from the current group.

Parameters:
Name Type Description
user String | User

Name of the user or User object.

toArray() → {Array.<String>}

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

Returns:
Type
Array.<String>