lost "view message history" function after receiving new role in community
Our community has 4 roles.
- Initial: I had 2 roles: A and B (knowing that A < B, B has more functions and includes functions in A)
- Then I was removed role A, then given role B only
But somehow I cannot view history messages.
What's wrong? I could not identify the problem, although my role has been assigned "view history messages". There are some channels I cannot view, while the others I can. But my role is the highest role and can view all channels. So what's wrong here? Appreciate your comments!
2 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!The permissions cascade works as follows:
Meaning:
- If any role you have has view_message_history on the guild level, then you can by default view history in all channels.
- If a channel has at-everyone :deny: view_message_history, then that applies to everyone
- If you still want a specific role to be able to view message history, you need :allow: overwrite for that specific role, or the specific user
Since you said you do not have the permission to do so in some channels (?) that'd imply that those channels have an explicit :deny: overwrite for at-everyone, a role you have (and no other :allow: for another role you have), or your user
-# second is the case, because as you can see in the flow above, all allows are applied after all denies, meaning if ANY role you have has a :allow: overwrite, only a personal user-based :deny: override can manage to still deny the permission