Closed beepboopdai closed 7 months ago
I'm facing the same issue
@TomasSlekys @beepboopdai You need to manually register at least one font in v6. Place the following at the top of your file and make sure it only runs once to prevent memory leaks.
// loads the bundled "Geist" font
require('canvacord').Font.loadDefault()
@TomasSlekys @beepboopdai You need to manually register at least one font in v6. Place the following at the top of your file and make sure it only runs once to prevent memory leaks.
// loads the bundled "Geist" font require('canvacord').Font.loadDefault()
thanks! It works now :)
const rank = new canvacord.RankCardBuilder() .setAvatar(targetUserObj.user.avatarURL({ size: 256 })) .setRank(currentRank) .setLevel(fetchedLevel.level) .setCurrentXP(fetchedLevel.xp) .setRequiredXP(calculateLevelXp(fetchedLevel.level)) .setStatus(targetUserObj.presence.status) .setUsername(targetUserObj.user.username) .setFonts("Arial")
i was trying to run this code but everytime i run the command i just get "Error: No fonts are loaded."