1
0
Fork 0
edp445/node_modules/canvacord
koelo 3513d5390c Changed alot of things. 2022-12-03 05:44:44 +00:00
..
assets Changed alot of things. 2022-12-03 05:44:44 +00:00
bin Changed alot of things. 2022-12-03 05:44:44 +00:00
libs Changed alot of things. 2022-12-03 05:44:44 +00:00
plugins Changed alot of things. 2022-12-03 05:44:44 +00:00
scripts Changed alot of things. 2022-12-03 05:44:44 +00:00
src Changed alot of things. 2022-12-03 05:44:44 +00:00
typings Changed alot of things. 2022-12-03 05:44:44 +00:00
LICENSE Changed alot of things. 2022-12-03 05:44:44 +00:00
README.md Changed alot of things. 2022-12-03 05:44:44 +00:00
index.js Changed alot of things. 2022-12-03 05:44:44 +00:00
package.json Changed alot of things. 2022-12-03 05:44:44 +00:00

README.md

SWUbanner

Canvacord

Powerful image manipulation tool to manipulate images easily.

Installation

$ npm i canvacord

NPM

Features

  • Super simple and easy to use 😎
  • Faster than canvacord v4 🚀
  • More than 50 methods...? Yay! 🎉
  • Built on top of @napi-rs/canvas 🔥
  • Object oriented 💻
  • Beginner friendly 🤓
  • Supports emojis 😀

Documentation

https://canvacord.js.org

Join our Discord server

https://discord.gg/CR8JxrxSwr

Examples

Rank Card

const canvacord = require("canvacord");
const img = "https://cdn.discordapp.com/embed/avatars/0.png";

const userData = getDataSomehow();

const rank = new canvacord.Rank()
    .setAvatar(img)
    .setCurrentXP(userData.xp)
    .setRequiredXP(userData.requiredXP)
    .setStatus("dnd")
    .setProgressBar("#FFFFFF", "COLOR")
    .setUsername("Snowflake")
    .setDiscriminator("0007");

rank.build()
    .then(data => {
        const attachment = new Discord.MessageAttachment(data, "RankCard.png");
        message.channel.send(attachment);
    });

Preview

RankCard

Other Examples

const Discord = require("discord.js");
const client = new Discord.Client();
const canvacord = require("canvacord");

client.on("ready", () => {
    console.log("I'm online!");
});

client.on("message", async (message) => {
    if (message.author.bot) return;
    if (message.content === "!triggered") {
        let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
        let image = await canvacord.Canvas.trigger(avatar);
        let attachment = new Discord.MessageAttachment(image, "triggered.gif");
        return message.channel.send(attachment);
    }
});

client.login("Your_Bot_Token_here");

Support me

Note

⚠ | In order to use Canvacord#Welcomer/Canvacord#Leaver/Canvacord#CaptchaGen, you may need to install packages like discord-canvas & captcha-canvas.