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
Joni2y ago
@param {Client} client yes, because otherwise I still get errors because I don't use interaction
Joni
Joni2y ago
Almeida
Almeida2y ago
are you not replying to the command interaction?
Joni
Joni2y ago
no only the one channel.send command What isn't my client?
Almeida
Almeida2y ago
client is not a Client what you are passing to the execute() method
Joni
Joni2y ago
client
Almeida
Almeida2y ago
it is not
Joni
Joni2y ago
Joni
Joni2y ago
or what do you mean
Almeida
Almeida2y ago
that client, it is not a client show your command handler
Joni
Joni2y ago
Almeida
Almeida2y ago
the place where you execute the commands presumably on an interactionCreate event listener
Joni
Joni2y ago
Almeida
Almeida2y 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
Joni2y ago
So do I always have to have interaction inside at least once? ok thanks man i fix it