G
G
gohellp2020-06-19 01:46:45
Node.js
gohellp, 2020-06-19 01:46:45

Error with .addField Create json, or is there an easier method?

The problem is that I need the bot to get information about the user's join date, but when using this function, it gives an error that it cannot find this information. I look at popular servers and see that they added self-records later than people joined, but they get information from somewhere. Do I need to create a json file where it will write all the data, or somehow change the line? I run via cmd.

line of code:

.addField("Присоединился", moment(mbr.joinedAt).format('MMMM Do YYYY h:mm:ss'))


error code:
ReferenceError: moment is not defined

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tltary, 2020-06-19
@gohellp

and moment is definitely connected?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question