Emily
DIAdiscord.js - Imagine an app
•Created by Emily on 7/19/2023 in #djs-questions
GuildMemberUpdate's oldMember doesn't have correct roles.
- [email protected]
- Node v16.20.1
I'm trying to run some code only when a specific role is either added or removed. After just starting the bot; the oldMember will always only have 1 role (@ everyone). After this code has been run at least once (I assumed) the member will be cached and it can correctly determine the oldMember's roles.
46 replies