Sending a messages to a channel without fetching the guild

Hello, I saw that some libs have functions to directly interact with the rest, for example i can send a message to an channel by putting the channel ID without needing to fetch the guild.
3 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
GreenMonkeyBoy
GreenMonkeyBoy10mo ago
The Guild ID is not required, you just need the Channel ID: https://discord.com/developers/docs/resources/channel#create-message
NotDemonix
NotDemonix10mo ago
ok thx I was not talking about inputing guild id but k