'Discord.js Quick.db Cannot target a non-object

Hello i am trying to quick.db set function but function get in error please help. Here's my code that i use

if (db.fetch(`RegisterMode.${message.guild.id}`) != 'true') {
    db.set(`RegisterMode.${message.guild.id}`, 'true')
    const embed = new Discord.MessageEmbed()
    .setTitle('Successfull!')
    .setDescription('You have successfully turned on the register mode')
    .setColor(settings.bilgiLogRenk)
     message.channel.send({ embeds: [ embed ] })
}

it's a error

C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\quick.db\src\methods\set.js:23 } else if (params.ops.target) throw new TypeError('Cannot target a non-object.'); ^

TypeError: Cannot target a non-object.

at Object.module.exports [as set] (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\quick.db\src\methods\set.js:23:39) at arbitrate (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\quick.db\src\index.js:396:27) at Object.set (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\quick.db\src\index.js:67:16) at Object.run (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\Source\Commands\kayitac.js:21:16) at Client. (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\index.js:107:13) at Client.emit (node:events:390:28) at MessageCreateAction.handle (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\discord.js\src\client\actions\MessageCreate.js:34:18) at Object.module.exports [as MESSAGE_CREATE] (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\discord.js\src\client\websocket\WebSocketManager.js:351:31) at WebSocketShard.onPacket (C:\Users\karay\Desktop\Altyapılar\Kayıt Altyapı\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source