Rahuletto / simply-djs

The easiest way to build sophisticated systems in your Discord bots.
https://simplyd.js.org
Other
75 stars 33 forks source link

rankCard bugging - Poppins Semi-Bold Not-Rotated #66

Closed rodycouto closed 2 years ago

rodycouto commented 2 years ago

Yesterday (08/05/2022) my bot explode an error in the rankCard.

This is the error image

This is the function that send the image from rankCard

async function SendLevel() {
    const msg = await message.reply(`${e.Loading} | Carregando...`) // Loading message

    let reData = await Database.User.findOne({ id: user.id }, 'Walls.Set') // Get the URL IMAGE from database

    try {
        Database.updateUserData(message.author.id, 'Timeouts.LevelImage', Date.now()) // Setting a timeout to block spams

        await simplydjs.rankCard(client, message, {
            member: user, // String
            level: level || 0, // Number
            currentXP: exp || 0, // Number
            neededXP: xpNeeded || 0, // Number
            rank: rank || 0, // Number,
            slash: false // It isn't a slash command
            background: reData.Walls?.Set || LevelWallpapers?.bg0?.Image || null // Image URL from Discord Chats || It's work perfectly
        }).then(() => {
            msg.delete().catch(() => { }) // Delete the loading message
        }).catch(err => { ErrorHandler(err) })

        return

    } catch (err) { return Error(message, err) }
}

This is the amazing rankCard with a custom background image

The bug make this... image

Rahuletto commented 2 years ago

We are sorry that this function is already deprecated and also removed in the latest version. You can try simply-xp package to use the rankCard system

rodycouto commented 2 years ago

We are sorry that this function is already deprecated and also removed in the latest version. You can try simply-xp package to use the rankCard system

OMG! That a old version from simply-xp can i use? I really love this lib

Rahuletto commented 2 years ago

We are sorry that this function is already deprecated and also removed in the latest version. You can try simply-xp package to use the rankCard system

OMG! That a old version from simply-xp can i use? I really love this lib

Yea it's your rights to use any version ♥️

rodycouto commented 2 years ago

If someone get the same problem, don't worry! Just use this -npm install simply-djs@2.0.99