#typeerror: db.fetch is not a function

12 messages · Page 1 of 1 (latest)

keen shale
#

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!

Link: https://srcb.in/Oq9B1bd2ri

ornate cave
keen shale
#

alright, i got that part fixed but now its throwing a "typeerror: ms is not a function"

ornate cave
keen shale
#

ms is in parse-ms

ornate cave
keen shale
#

ok

keen shale
#

that didn't really show much... im still getting the error ms is not a function

ornate cave
#

You should know that the import method returns a promise

#

And you do not use it correctly