client.channels.cache.get(channelid) returning undefined

Attempting to send a message to channels using the channel id. However, client.channels.cache.get(channelid) keeps returning undefined and client.channels.fetch(channelid).send(message) results in the following error:
TypeError: client.channels.fetch(...).send() is not a function
. Any advice?
Was this page helpful?