neplextech / canvacord

Easily generate images using react-like components in nodejs. Canvacord is suitable for creating dynamic images such as social media posts, greetings cards, memes, etc. It is also possible to create your own templates and builders to generate images. You are only limited by your imagination.
https://canvacord.neplex.dev
GNU General Public License v3.0
254 stars 72 forks source link

[BUG]: Welcomer text not showing... #158

Closed 21Z closed 1 year ago

21Z commented 1 year ago

I've seen several reports in the (CesiumLabs) server saying that the text in welcomer doesnt display, testing the code they used, i can only reproduce this on windows, so its probably a font issue...

Code i used:

const member = msg.member
const {Welcomer} = require("canvacord");
const welcimg = new Welcomer()
        .setAvatar(member.user.displayAvatarURL({ dynamic: false, extension: "png" }))
        .setUsername(member.user.username)
        .setDiscriminator(member.user.discriminator)
        .setGuildName(member.guild.name)
        .setMemberCount(member.guild.memberCount + 1)
.setBackground("https://cdn.discordapp.com/attachments/1103704135049674775/1113066551692771359/56baae6240862cbf8090eb031c9eda5b.png");
welcimg.build().then(m => {
 msg.channel.send({ files: [m] }); 
})

Windows: image Linux: image

twlite commented 1 year ago

this issue is related to assets, see https://github.com/neplextech/canvacord/issues/157 for a fix

21Z commented 1 year ago

this issue is related to assets, see #157 for a fix

I tried that already, doesn't seem to work. checked it again now after the reply, still doesn't work...