The DiscordSDK has been updated to the latest version which just released
My logic around the DiscordSDK management has been reworked
Between those two things, crashes are way down!
The Module <-> Companion connection is now WebSockets
Using a lot of black magic that I'll write up later, I've now accidentally ended up building in a Discord powered lobby system complete with voice into Foundry #whoops
This Voice chat is Discord powered, but doesn't register as a chat inside of the Discord client (an unfortunate decision of their SDK). As such, you can't use the Discord client to join the Foundry lobby despite them being served by the same netcode
New options for configuration, including an off-by-default option for each client so it's easier to introduce into your games that have not-so-tech-savvy players
Custom hooks so you can write your own module integrations that display effects when a player is speaking in Voice Chat! Hooks.on("discord-userspeaking", (discordId, isSpeaking) =>
You can associate that to a User via user.getFlag("discord-rich-presence", "discordId")
Hooks.on("discord-userspeaking", (discordId, isSpeaking) =>
user.getFlag("discord-rich-presence", "discordId")