get forum channel list of role permissions

I am trying to get a list of role permissions for a specific channel, because I need to get the ID of the 4th role in the list. How would I do this if I have channel = [channelObject]
4 Replies
d.js toolkit
d.js toolkit2y 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!
d.js docs
d.js docs2y ago
class PermissionOverwriteManager (extends CachedManager) Manages API methods for guild channel permission overwrites and stores their property TextChannel#permissionOverwrites A manager of permission overwrites that belong to this channel
treble/luna
treble/luna2y ago
also, i believe the cache is unordered so the 4th role wont correspond with the role shown in the client
Rai
RaiOP2y ago
thats fine, should be able to find it

Did you find this page helpful?