src/Api/Community.php
public function invite(array $users) : void
    {
        $data = (object)[
            'onlineIds' => $users
        ];

        $this->postJson(sprintf(self::COMMUNITY_ENDPOINT . 'communities/%s/members', $this->id()), $data);
    }
public function invite(array $users) : void
    {
        $data = (object)[
            'onlineIds' => $users
        ];

        $this->postJson(sprintf(self::COMMUNITY_ENDPOINT . 'communities/%s/members', $this->id()), $data);
    }
public function invite ( array $ users ) : void { $ data = ( object ) [ 'onlineIds' => $ users ] ; $ this -> postJson ( sprintf ( self :: COMMUNITY_ENDPOINT . 'communities/%s/members' , $ this -> id ( ) ) , $ data ) ; }
Invite one or more Users to the Community.

@param array $users Array of each User's onlineId as string.
@return void
Invite one or more Users to the Community .