Can someone help me by this Error | TypeError Cannot read properties of undefined (reading 'cache'

TypeError: Cannot read properties of undefined (reading 'cache')
15 Replies
Joni
JoniOP3y ago
@param {Client} client yes, because otherwise I still get errors because I don't use interaction
Joni
JoniOP3y ago
Almeida
Almeida3y ago
are you not replying to the command interaction?
Joni
JoniOP3y ago
no only the one channel.send command What isn't my client?
Almeida
Almeida3y ago
client is not a Client what you are passing to the execute() method
Joni
JoniOP3y ago
client
Almeida
Almeida3y ago
it is not
Joni
JoniOP3y ago
Joni
JoniOP3y ago
or what do you mean
Almeida
Almeida3y ago
that client, it is not a client show your command handler
Joni
JoniOP3y ago
Almeida
Almeida3y ago
the place where you execute the commands presumably on an interactionCreate event listener
Joni
JoniOP3y ago
Almeida
Almeida3y ago
look at what you are passing to .execute() and then look at what you are expecting on the execute() methods on the commands
Joni
JoniOP3y ago
So do I always have to have interaction inside at least once? ok thanks man i fix it
Want results from more Discord servers?
Add your server