5. Detailed Methods for Top - GeopJr/tankionline.js GitHub Wiki

For this page, I will assume the example code is this:

Top.then(data => {
//data.method
}).catch(error => { console.log(error)});

Basic info

.top
//responds with an array of json objects

.top[0-top.length].name
//responds with the name of the player at that position

.top[0-top.length].hasPremium
//responds with the premium status of the player at that position

.top[0-top.length].rank
//responds with the rank of the player at that position

.top[0-top.length].rankimg
//responds with the image of the rank of the player at that position

.top[0-top.length].value
//responds with the value of the selected type of the player at that position