How can I fetch channel?

Message and channel
4 Replies
d.js toolkit
d.js toolkit13mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Syjalo
Syjalo13mo ago
discord.js requires Guilds intent. With that intent all guild channels are cached. client.channels.cache.get('id') or guild.channels.cache.get('id') For DM channels
d.js docs
d.js docs13mo ago
method User#createDM() Creates a DM channel between the client and the user.
Fyphen
Fyphen13mo ago
ok thx