A proper way of knowing why GUILD_CREATE was fired #4711
-
Currently, there is no "convenient" and documented way of determining why a
However there is no way of properly differentiating between these cases and why a There should either be a proper note about Since the most common use case is to distinguish the occurrence of GUILD_CREATE event on new guild join, One solution is, Similar to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
expected guilds are listed in the READY event (with unavailable:true) iirc, before they are dispatched as full |
Beta Was this translation helpful? Give feedback.
expected guilds are listed in the READY event (with unavailable:true) iirc, before they are dispatched as full
GUILD_CREATE
s as they get connected to your session, so I think you can differentiate with that? anyGUILD_CREATE
s you get that aren't part of the initial list are new joins, as of that session anyway. if you wanted to handle joins that happened while you were offline for some reason, you could compare your member joined_at timestamp i think.