#TypeError: db.all(...).filter is not a function
5 messages · Page 1 of 1 (latest)
if(config.Users.OWNERS.includes(message.author.id) || db.get(`ownermd_${client.user.id}_${message.author.id}`) === true || perm) {
let publict = db.all().filter(data => data.ID.startsWith(`publicp_${message.guild.id}`)).sort((a, b) => b.data - a.data)
publict.length = 10;
var public = "";
for (var i in publict) {
if(message.guild.roles.cache.get(publict[i].ID.split('_')[2])) public += `${message.guild.roles.cache.get(publict[i].ID.split('_')[2]) ? "<@&" + message.guild.roles.cache.get(publict[i].ID.split('_')[2]).id + ">\n" : ":x:"}`;
}```
that's the code where i have the error
There is a page that shows migration steps from v7 to v9