#In the GuildMemberRemove event, are the cached roles of the guild member all there?

4 messages · Page 1 of 1 (latest)

spiral kite
#

Do I have that guarantee that when the GuildMemberRemove event fires that the <GuildMember> from the parameter has all the roles that they had right before leaving? If not, when are their roles cached exactly?

quasi anvilBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
shadow hatch
#

There are no Guarantees with discord, but if you don’t have the GuildMember partial but the GuildMembers intent then if that event emit it would emit with the member having their roles they had before leaving

spiral kite
#

One more question while your here, where can I read more about how discord.js caching works?