Updating Users Permissions (RoleManager)?

Once Discord.js has started and I change roles on a user, the permissions bits stay the same as the permissions when the bot was started. How can I update the permissions when they are changed? ├─┬ [email protected] │ └── [email protected] deduped └── [email protected] Node: v20.12.2
7 Replies
d.js toolkit
d.js toolkit8mo 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!
duck
duck8mo ago
if you have the GuildMembers intent, your bot will receive the guildMemberUpdate event and update the cache
Chris
ChrisOP8mo ago
Ah Okay! I will have to add that! Doh
duck
duck8mo ago
some side notes: - modals are already natively supported and have been for a while, so discord-modals is completely unnecessary - 14.15.1 already released, so you're using an outdated dev version
Chris
ChrisOP8mo ago
Yeah, I will update shortly 😄 @duck This is not possible because I cannot use Guild_members intent as my bot is verified. Is there another solution?
duck
duck8mo ago
no, this is where you would apply for the intent
Chris
ChrisOP8mo ago
Okay 🙂
Want results from more Discord servers?
Add your server