Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cool-image-api-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cool-image-api-wrapper

A quick and easy wraper to interact with the cool image api!

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

Cool Image API Wrapper

Discord Version Documentation License: GPL-3.0

What is cool-image-api-wrapper?

A quick and easy wraper to interact with the cool image api!

Features

  • 🧑 Beginner friendly
  • 🎉 Easy to use
  • ✨ Simple
  • ⚙️ Asynchronous
  • and much more!

Install 📥

npm install cool-image-api-wrapper

Usage 📚

const { API } = require("cool-image-api-wrapper");
const api = new API();
await api
  .discord_message(
    "My, name is Sujal Goel",
    "#7289DA",
    "Sujal Goel",
    "https://cdn.discordapp.com/avatars/581752425858203659/a_b26f9781f3b0300177ab1f3af6190a52.png"
  )
  .then((data) => {
    console.log(data);
  })
  .catch((e) => {
    console.log(e);
  });

Example ✏️

const Discord = require("discord.js");
const client = new Discord.Client();
const { API } = require("cool-image-api-wrapper");
const api = new API();

client.on("ready", () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on("message", async (message) => {
  if (message.content === "test") {
    await api
      .discord_message(
        "My, name is Sujal Goel",
        "#7289DA",
        "Sujal Goel",
        "https://cdn.discordapp.com/avatars/581752425858203659/a_b26f9781f3b0300177ab1f3af6190a52.png"
      )
      .then((data) => {
        console.log(data);
        const attachment = new Discord.MessageAttachment(data);
        message.channel.send(attachment);
      })
      .catch((e) => {
        console.log(e);
      });
  }
});

client.login("DISCORD_BOT_TOKEN");

Contributing 🤝

  • Contributions, issues and feature requests are welcome!
  • Feel free to check issues page.

Author 💖

✌ Important Links:

Keywords

FAQs

Package last updated on 18 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc