gamesdk-and-dispatch icon indicating copy to clipboard operation
gamesdk-and-dispatch copied to clipboard

reason parameter in IDiscordLobbyEvents.on_lobby_delete has no associated enum or information

Open ldesgoui opened this issue 6 years ago • 1 comments

Hello,

on_lobby_delete is currently defined as such: { void (*on_lobby_delete)(void* event_data, int64_t lobby_id, uint32_t reason); }

The documentations advertise a String parameter, looking through the C++ and C# wrappers, I have not found logic to convert from the integer to a string https://discordapp.com/developers/docs/game-sdk/lobbies#onlobbydelete

Thanks

ldesgoui avatar Feb 25 '20 20:02 ldesgoui

Convertin in C# from int to string could be something like... Using System;

int X = Convert.ToString(X);

OnLobbyDelete is only a Callback anyway, so listening is about all there is for it, reasons themselves are undocumented afaik all the possible Reasons there can be.

Jump-Suit avatar Feb 25 '20 22:02 Jump-Suit