Easily interact with the Tree Farmer API
Install with npm install treefarmer.js
and it will be installed.
- To use the API you must have an API token.
- Obtain a token by creating a farm, join the community server and type
/api
. - Every method on the client is a promise.
import { Client } from 'treefarmer.js';
const client = new Client('API TOKEN');
const user = await client.getUser('292821168833036288');
Read the documentation for Treefarmer.js @ js.treefarmer.xyz
Feel free to contribute however, it is appreciated! Join the community server @ treefarmer.xyz/discord.