#.

1 messages · Page 1 of 1 (latest)

peak cliff
#

Hello, you quoted the change for me in the chat V14, but did not understand very well ... CommandArray is already set

tacit garnet
#

yes, but client does not have a commandArray property so thats why you get that error

#

just define commandArray as an array in that file

peak cliff
#

Can you show me?

tacit garnet
#

do you know how to define something

peak cliff
#

I think it's weird that, he seems to be set.

tacit garnet
#

simply make commandArray a separate variable, which should be equal to an array
this is basic js

peak cliff
tacit garnet
#

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

charred heart
#

it kinda looks like client.commands is a collection. why don't you make commandArray a collection as well?

tacit garnet
#

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

charred heart
#

yeah but thats what it looks like

tacit garnet
#

all they need to do is separate commandArray into it's own variable, which is equal to an array. it's very simple

charred heart
#

^^ yeah

peak cliff
tacit garnet
#

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

peak cliff
tacit garnet
#

the things I’ve said haven’t changed