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?
        (async () => {
            try {
                await ready;
                client.channels.cache.get(channelID).send({ content: " ", embeds: [embed_events] }).then(sent => {
                    databases.overview.message_id = sent.id;
                });
            } catch (err) {
                console.error(err);
            }
        })();


Error:
TypeError: Cannot read properties of undefined (reading 'send')
Was this page helpful?