I am trying to make a leaderboard with quick.db and I want it to go through all the variables its golding and grab all the variables starting with money_${message.guild.id}_
and give back the rest of the var name and it's amount
let list = []
db.all().forEach(elem => {
if(elem.startsWith(`money_${message.guild.id}_`)) {
board.push(list);
}
});
message.channel.send(list.join("\n"))
The error I'm getting is elem.startsWith
isn't a function