I was trying to send a message to a specific channel so I use the script below
let msg = "I am a message"
clients.channels.cache.get("902208249099612170").send(msg)
but all I got were this error
clients.channels.cache.get("902208249099612170").send(msg)
^
TypeError: Cannot read properties of undefined (reading 'send')
I have no idea why can't it send a message, I am using discord js v13, anyone has any idea what is the problem? Thanks