So I am trying to add an economy system to my discord bot. I got one command added. The command is called "daily", It will give the user coins every 24 hours (it will soon be giving a set amount of coins based on how many days in a row they have claimed their daily reward (this part isn't added to the command's code yet) but currently when i try to run my daily command it comes back with: TypeError: db.fetch is not a function I have provided the full error it throws in the console + the code for the command via the link below!
#typeerror: db.fetch is not a function
12 messages · Page 1 of 1 (latest)
I am not sure if you are following an old tutorial or if your code was just never updated but the new version of quick.db doesn't have db.fetch and a lot of things changed as well.
https://plexidev.gitbook.io/quickdb/overview/migration-guide
alright, i got that part fixed but now its throwing a "typeerror: ms is not a function"
Ms? I would need more details. Ms is has never been part of quick.db
ms is in parse-ms
https://srcb.in/LFZ6S3oVkl (current error + the current command's code) if you want to take a look at it
You should look at their docs/readme https://www.npmjs.com/package/parse-ms
ok
that didn't really show much... im still getting the error ms is not a function
You should know that the import method returns a promise
And you do not use it correctly