Thank you for this suggestion!
I'm afraid that this is a bit "heavy" to call every time the user sends a whisper to someone.
Perhaps the solution should be to somehow create a list of online guild members, using your code. But this is problematic too, since I'm not sure when to update that list. For example, players on mobile might login to the game, new players are invited to guild, etc.
|