I'm trying to use a transport based on the Discord Game SDK, however it seems to be a bit outdated (a bit as in 2 years). The transport in question can be found at https://github.com/Derek-R-S/Discord-Mirror (created by @arctic marten). Most of the issues are easy fixes (reordered argument lists, changed return types from bool to void). However, at https://github.com/Derek-R-S/Discord-Mirror/blob/master/DiscordTransport.cs#L162 there appear two errors I can't fix: the first argument changed from List<int> to int, and OnServerError requires a TransportError and a string, instead of an Exception. Does anyone know how to fix these? Thanks in advance.
#Discord Transport
1 messages · Page 1 of 1 (latest)
ServerSend(List<int> connectionIds is long gone - you'll have to find the caller and change it to a loop to send individual messages
for the other...
OnServerError?.Invoke(connectionIds[i], TransportError.Unexpected, "Error sending data to client: " + e.ToString());
It seems to me (might be wrong - new to mirror) that sending is handled per connection. As such, think the loop is already somewhere way up the chain. I'll try removing the loop - if it works, great, if it doesn't, I'll try opening an issue in github, might get something...
There may be a loop that builds the list...it will have to abandon the list and just send the msgs individually
tbh I thought Discord abandoned that service