Fetch all channles name of specified guild

Guild is ID
7 Replies
d.js toolkit
d.js toolkit12mo 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.
chewie 🌈
chewie 🌈12mo ago
get the guild from cache using client.guilds.cache.get('id') and then map over guild.channels.cache and get their names
Fyphen
Fyphen12mo ago
could u code it ? I'm not sure what I'm doing
chewie 🌈
chewie 🌈12mo ago
no, we don't spoonfeed
d.js docs
d.js docs12mo ago
class GuildManager (extends CachedManager) Manages API methods for Guilds and stores their cache.
Fyphen
Fyphen12mo ago
ok
d.js docs
d.js docs12mo ago
class GuildChannelManager (extends CachedManager) Manages API methods for GuildChannels and stores their cache.