Equivalent to "GuildMemberRoleAddEvent" for offline users #1588
-
Hi. I have a problem. My bot is supposed to post an entry in the database automatically after assigning a rank, but it does so only when someone is online. So what is the counterpart of this event for offline people? I would be very grateful for your help :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This event has nothing to do with the online state of a member. The event requires members to be cached in order to figure out which roles were added. You can use GuildMemberUpdateEvent instead. Please read the documentation for GuildMemberRoleAddEvent which directly explains the requirements for its trigger. |
Beta Was this translation helpful? Give feedback.
This event has nothing to do with the online state of a member. The event requires members to be cached in order to figure out which roles were added. You can use GuildMemberUpdateEvent instead. Please read the documentation for GuildMemberRoleAddEvent which directly explains the requirements for its trigger.