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