2.2.0 ā¢ Published 3 years ago
fluxpoint-api.js v2.2.0
npm i fluxpoint-api.js
Get Started
const fluxpoint = require("fluxpoint-api.js");
const client = new fluxpoint.FluxClient("api_token");
Supported API Interactions
Gallery
client.gallery("album_id").then((img) => {
// ...
});
NSFW
you are responsible for locking this to nsfw channels. Types:
azurlane
,nekopara
,lewd
client.nsfw("image_type").then((img) => {
// ...
});
List (Welcome Icons)
const fluxpoint = require("fluxpoint-api.js");
const client = new fluxpoint.Client("api_token");
await client.listWelcomeIcons().then((res) => {
message.channel.send(`\`\`\`json\n${res.list.join("\n")}\`\`\``);
});
List (Welcome Banners)
const fluxpoint = require("fluxpoint-api.js");
const client = new fluxpoint.Client("api_token");
await client.listWelcomeBanners().then((res) => {
message.channel.send(`\`\`\`json\n${res.list.join("\n")}\`\`\``);
});
š Usage Example(s)
Embeds (Gallery)
client.gallery("album_id").then((img) => {
let embed = new Discord.MessageEmbed()
.setTitle("Embed Title")
.setDescription("")
.setImage(img.file); // img url
message.channel.send(embed);
});
Author
š¤ ~ Fearful ~#2000
- Contact me here:
Discord
<- ā¢ click me