labs-api-wrapper
v1.0.9
Published
The official API wrapper for the Labs' API.
Downloads
3
Maintainers
Readme
Exemple Usages
Documentation can be found here
Generate a token by using this command : !generateToken
on this Discord server.
const wrapper = require('labs-api-wrapper'); // Import the wrapper
const client = new wrapper.Client() // New client
client.login('token') // Login the client with your token.
client.fetchMembers().then(members => {
console.log(members)
})
// Or asynchronous
(async()=>{
const members = await client.fetchMembers()
console.log(members)
})();
// You can also get a specific member/bot
client.getBot("id").then(bot => {
console.log(bot)
})
// Or asynchronous
(async()=>{
const bot = await client.getBot("id")
console.log(bot)
})();