Leo API Wrapper
This wrapper utilises leoapi
Support
If you want any support for this package head on over to our discord server
To use this wrapper you must type in the functions...
const API = require('leoapi.xyz')
const leo = new API()
leo.image('<endpoint>', {
'<param>': '<value>'
})
leo.data('<endpoint>', {
'<param>': '<value>'
}).then(data => console.log(data))
leo.text('<endpoint>', {
'<param>': '<value>'
}).then(data => console.log(data))
leo.fun('<endpoint>', {
'<param>': '<value>'
}).then(data => console.log(data))
Examples
const API = require('leoapi.xyz')
const leo = new API()
leo.image("delete", {
image: "https://cdn.discordapp.com/avatars/538668078012039168/baeefb053a81c10dc2942a30a26f805d.png?size=256"
}).then((image) => {
<Message || Interaction>.<Send || followUp>({ files: [image]})
})
//data commands
leo.data("npm", {
package: "leoapi.xyz"
}).then((data) => {
<Message || Interaction>.<Send || followUp>({ content: [data]})
})