[Gateway] Easily distinguish GUILD_CREATE events #3966
Unanswered
Skillz4Killz
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 3 replies
-
The unavailable field already lets you distinguish between GUILD_CREATEs where the guild is becoming available (so after outages and on start-up) and where the bot was added to a guild. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋
Is there any technical reason why a property on GUILD_CREATE event can not be added to help determine the type of GUILD_CREATE event. These events are emitted in various different circumstances.
I am hoping a property could be added that we can then use to determine how to handle it without having to cache/store millions of guild ids.
If there is an alternative method, that could solve this as well from your side i would be totally open to that as well. For example, separate events for each.
Use Case:
I try to support standalone gateway processes and the events are simply passed on to a event handler process so if the event handler restarts it loses that cache of ready event guildIds. My goal is to make it not rely on cache/storage as much as possible. At the moment, this just isn't possible and it is necessary to cache all this. Discord has been pushing for more stateless bots so this would go a long way in helping as well.
Thank you 🙏
Beta Was this translation helpful? Give feedback.
All reactions