Skip to content

Releases: neplextech/canvacord

v5.1.0

25 Feb 13:43
Compare
Choose a tag to compare

Updates

v5.0.8-deno

25 Nov 03:36
253a3ce
Compare
Choose a tag to compare

Pre-release for deno

Canvacord v5

03 Oct 07:22
253a3ce
Compare
Choose a tag to compare

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 node-canvas and no bullsh*t involved 🔥
  • Object oriented 💻
  • Beginner friendly 🤓
  • Supports emojis 😀

Documentation

https://canvacord.js.org

Join our Discord server

https://discord.gg/2SUybzb

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()
    .registerFonts()
    .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.trigger(avatar);
        let attachment = new Discord.MessageAttachment(image, "triggered.gif");
        return message.channel.send(attachment);
    }
});

client.login("Your_Bot_Token_here");

Note

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

Canvacord v4

13 Aug 16:36
7357353
Compare
Choose a tag to compare

Hello everyone, Canvacord v4 is now available 🎉
You may need to update your code for v4.

Old versions:

const canvacord = require("canvacord");
const canva = new canvacord();

canva.doSomething(); // example

Current Version:

const canvacord = require("canvacord");

canvacord.doSomething(); // example

Changes:
- Migrated to static methods.
- Added spotify and rotate endpoints.
- Canvacord now supports discord emojis
- Updated docs
- Other minor changes

Links:
- Documentation: https://canvacord.snowflakedev.xyz
- NPMJS: https://npmjs.com/package/canvacord
- GitHub: https://github.com/Snowflake107/Canvacord

Discord Support: https://discord.gg/2SUybzb

Canvacord v3

22 Jun 11:23
f4d548c
Compare
Choose a tag to compare
  • New endpoints
  • Supports custom background for rank card
  • Bug fixes

Docs