get category name of channel
Is it possible to get the category name of a specific channel? I want to list channels for a web based auto complete and a category would be useful to display.
Im currently using cached channels but with fetched channels .parent is as empty as without
6 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!
- ✅
Marked as resolved by OPIt'd be <Channel>.parent.name, can you show the code you're working with?
ye, currently I have the following:
when adding the raw channel to the results, looking at the results parentId (and therefore parent too) is null
aMEcUjfyzAHRnzccSe ~ @0x7d8
406.29 KB (image/png)
Are you sure that channel has a parent? Is this for all channels?
It seems to do this for all channels, yes it has a parent