Cannot read properties of undefined (reading 'send')
I'm awaiting the ready event from my bot to send a message. Sadly that doesn't work. Any ideas?
Error:
9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
1. Invalid channel id
2. Channel is not cached
Channel ID is correct. How can I see if the channel is cached? Or fix that?
Is that a guild channel?
It's a channel in a discord server, if you mean that, yes. The bot also has access to it (it has administrator permissions)
Do you have Guilds intent?
I guess so
What is in your
ready
variable?Promise { undefined }
That's the index.js file. I'm importing ready in another file and wait that I can send a message