1.0.1 • Published 2 years ago

@tbhcodies/hypixel-js v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

const Hypixel = require('hypixel-js');

const client = new Hypixel({ key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' });

// old school callbacks client.getPlayerByUsername('Codies', (err, player) => { if (err) { return console.info('Nope!'); }

// or a Promise if no callback provided client.findGuildByPlayer(player.uuid) .then((guildId) => { ... }) .catch((err) => { ... }); });

1.0.1

2 years ago

1.0.0

2 years ago