Closed typhoon11 closed 3 years ago
db.once('ready', async () => {
if ((await db.get('giveaways')) === null) await db.set('giveaways', []);
});
Are you sure that you have this? https://github.com/Androz2091/discord-giveaways/blob/master/examples/custom-databases/mongodb.js
Yeah I have that.
I figured out the problem. db.once
is not an option anymore so it will be db.on
I changed my database from quick.db to quickmongo so I used your code. But now I am getting this error.