Is there currently a web endpoint of some sort to check when a member has left?
You would have to do a while loop to go through the player’s groups and check if the player is still in the specific group using GroupService. That’s all I can think of.
Edit: Sorry. I didn’t read properly, you want a web endpoint.
Even if that was the case, I believe it wouldn’t work with the current implementation of IsInGroup (unless something has changed in the past 19 days)
https://devforum.roblox.com/t/why-does-isingroup-cache-server-side-but-not-local/73550
IsInGroup caches but GroupService doesn’t. I’ve tested that ;p
Im talking about 10,000+ members and I dont believe it would be great idea to be looping through that many on the daily. Seems I might be out of luck.
As far as I know, there aren’t any push APIs available in Roblox. You’re probably out of luck.
This for TNI? Might be good to do a purge every time data is loaded in admin place.
Yeah and I may use it for FEAR, but the issue with places is for one discord is being used to award the xp and nobody is ever required to join a game to get their xp. So validating a single person that way isnt totally accurate.
I’m meaning running some sort of loop through every user in the database.
Use HttpService to make sure only one ‘loop instance’ is running. It’d be slow, but the combined time of people visiting the place would add up.
On the discord bot maybe unless a google app script can run in real time.
Whats your use case? maybe there is another way you can do what you need to do without having to loop through the players in the group.
I mean, in the server of the admin place, running a script that loops through everyone in the database that then sends a request to remove them from it.
If you do it right, only one loop will run at a time. Not only this, but it won’t be causing many performance issues or anything since it’ll only be one person.
If you need it cleared out badly, just leave yourself idle in the place a couple of times. You won’t even need to do that if the place is being visited a lot.
I merely wish this could be integrated into something as for linking to discord to see arrivals/departs
I found this: https://assetgame.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=261&groupid=57 from GitHub - matthewdean/roblox-web-apis: List of Roblox web APIs
Since IsInGroup caches, you could use that. Anyway, I hope that helps