1.4.2 • Published 2 years ago
luawl v1.4.2
luawl, also known as luaGuard
Example (JavaScript)
/**
* you do not have to share luawl variable with another files, unless you want to
*/
// ex. 1
require('luawl').token = 'API_TOKEN'
// ex. 2
const luawl = require('luawl')
luawl.token = 'API_TOKEN'
luawl.getWhitelist({ discord_id: "id" }).then(response => {
console.log(response)
})
Example (TypeScript)
/**
* you do not have to share luawl variable with another files, unless you want to
*/
import * as luawl from 'luawl'
luawl.token = 'API_TOKEN'
luawl.getWhitelist({ discord_id: "id" }).then(response => {
console.log(response)
})