function factory(array $data) {
        $presence = new \CharlotteDunois\Yasmin\Models\Presence($this->client, $data);
        $this->set($presence->userID, $presence);
        return $presence;
    }
function factory(array $data) {
        $presence = new \CharlotteDunois\Yasmin\Models\Presence($this->client, $data);
        $this->set($presence->userID, $presence);
        return $presence;
    }
function factory ( array $ data ) { $ presence = new \ CharlotteDunois \ Yasmin \ Models \ Presence ( $ this -> client , $ data ) ; $ this -> set ( $ presence -> userID , $ presence ) ; return $ presence ; }
Factory to create presences.
@param array  $data
@return \CharlotteDunois\Yasmin\Models\Presence
@internal
Factory to create presences .