try {
const rep = await (db.get(id)) ?? 0
db.set(id, rep+1)
return (rep+1)
} catch (error) {
console.log(error)
}
}```
This is my code when i call the function
message.mentions.members?.forEach((mem) => {
const rep = reputation(mem.id)
console.log(rep)
message.channel.send(Gave one reputation to ${mem} (${rep}))
})```
it says Object Promise