#TypeError: db.all(...).filter is not a function

5 messages · Page 1 of 1 (latest)

late maple
#

hi iam using a perm command that worked in quick db version v7 but not in v9 what do i have to change ??

#
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

little sequoia