How can I fetch channel?

Message and channel
4 Replies
d.js toolkit
d.js toolkit2y 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
Syjalo2y 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 docs2y ago
method User#createDM() Creates a DM channel between the client and the user.
Fyphen
FyphenOP2y ago
ok thx
Want results from more Discord servers?
Add your server