2.2.0 ā€¢ Published 3 years ago

fluxpoint-api.js v2.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago
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:
2.2.0

3 years ago

2.1.9

3 years ago

2.1.8

3 years ago