discord / gamesdk-and-dispatch

Public issue tracker for the Discord Game SDK and Dispatch
22 stars 7 forks source link

Game SDK search results should include per-member metadata #57

Open hach-que opened 4 years ago

hach-que commented 4 years ago

Right now if you try to access per-member metadata on search results, it always fails with NotFound, because the SEARCH_LOBBIES emit doesn't include metadata for each member.

I'm having to workaround the issue by updating the metadata on the lobby as well every time my application internally calls UpdateMember, and then falling back to searching the lobby metadata every time I call GetMemberMetadataValue, but this is a dumb and poorly performing workaround because of the rate limits on UpdateLobby.

Jump-Suit commented 4 years ago

I can concur, it would prove beneficial to fetch a player's metadata through a search to for example: Display a Player's Level, their score, what weapons do they possess? Without doing a method that is probably unheard of. This can be easily resolved if Searching Lobbies did include Player metadata, we can fan out the properties ourselves for the important bits and the non-important bits if needed!