InfernalHarmony
InfernalHarmony
DIAdiscord.js - Imagine a bot
Created by InfernalHarmony on 2/16/2024 in #djs-questions
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
TypeError: client.channels.fetch(...).send() is not a function
. Any advice?
16 replies