Hi guys ! I’m making a leaderboard for my server and i have problems with it, i got an error “db.startsWith is not a function” and i want some help
Here is the code
if (args[0] == 'credits') {
let money = db.startsWith(`money_${message.guild.id}`, { sort: '.data'})
let content = "";
for (let i = 0; i < money.length; i++) {
let user = bot.users.get(money[i].ID.split('_')[2]).username
content += `${i+1}. ${user} ~ ${money[i].data}\n`
}
const embed = new Discord.RichEmbed()
.setDescription(`**Topul creditelor pe serverul ${message.guild.name}**\n\n${content}`)
.setColor("#FFFFFF")
message.channel.send(embed)
}