#.
1 messages · Page 1 of 1 (latest)
Hello, you quoted the change for me in the chat V14, but did not understand very well ... CommandArray is already set
yes, but client does not have a commandArray property so thats why you get that error
just define
commandArrayas an array in that file
How do I define CommandArray as an array?
Can you show me?
do you know how to define something
I think it's weird that, he seems to be set.
simply make commandArray a separate variable, which should be equal to an array
this is basic js
I understand, can you help me and show me how I do this? Maybe I have a little difficulty because I'm Brazilian
if you understand then you should be able to do this
you being Brazilian has nothing to do with knowing js
if you have no idea what i'm saying, i suggest you take a look at #resources or #869652447881207858
it kinda looks like client.commands is a collection. why don't you make commandArray a collection as well?
well, take a look at the variable name, commandArray
doesnt really make sense to make that a collection if they're trying to push to an array
yeah but thats what it looks like
all they need to do is separate commandArray into it's own variable, which is equal to an array. it's very simple
^^ yeah
I couldn't, buddy, if you want to show me how I do this, I'm not ashamed to say I didn't understand, for me this way it was correct.
I suggest you brush up on your js before coding a discord bot #useful-servers #resources because I showed you what to do 2 times
Your code is not correct because client does not have any commandArray or commands property
They’re probably custom properties, but client is undefined anyway.
Take a look at the guide https://discordjs.guide
the things I’ve said haven’t changed