XtoManuel
DIAdiscord.js - Imagine an app
•Created by XtoManuel on 8/25/2024 in #djs-questions
Is there a way to get a log of added or removed roles for a member?
I have used this code for a long time to achieve this until suddenly I encountered an error when a member is not in the cache. When the
guildMemberUpdate
event occurs, it logs that all roles the member already had have been added again.
Here is an example of the logs with this code, showing this issue:
where 418586876899885056
is the ID of the server (guild).7 replies