create channel in another server when command ran in other server
i was wondering how i can run a command in one server and then create a channel in aonther server my dsicord bot is in
5 Replies
- 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!get the guild from cache and then create the channel
well i know how to create the channel but i dont understand how to get the guild from cache
<Client>.guilds.cache.get(id)
oh that makes more sense thanks