Releases: discord/discord-rpc
Unity il2cpp support and callback bugfixes
This release includes support for il2cpp compiling in Unity. It is backwards compatible with Mono. It also contains a number of bug fixes, including:
- Fixed strings getting cut off prematurely in C#
- The IO thread is now dynamically created to help with the race condition between a final
SendPresence()
andShutdown()
- Fixed the
disconnected()
callback not being fired
Add User Object to Ready Event Payload
The ready()
callback event will now return basic user information:
- username
- user id
- avatar
- discriminator
For the user to which your application is connected. This release also changes the struct
name from DiscordJoinRequest
to DiscordUser
, to better reflect its purpose in the ready()
and joinRequest()
callbacks.
[Bug Fix] Dynamic Handler Registration
The previous release did not properly subscribe to events on Discord_Initialize()
when passing registered event handlers. This release fixes that bug.
Dynamic Handler Registration
This release exports the Discord_UpdateHandlers()
function, which allows you to dynamically register and unregister event handlers outside of the initial Discord_Initialize()
function. It also includes an updated certificate name for signing purposes, as well as some minor bug fixes.
Bug Fixes, API Changes, Example Updates
API Changes
-
Discord_Register
andDiscord_RegisterSteam
have been exported into their own header filediscord_register.h
-
partyMax
is now a mandatory field if you sendpartySize
and will error otherwise
Bug Fixes
- Ongoing MinGW build support (fixes for segfaults, missing declarations)
Example Updates
-
C# wrapper found in
examples/button-clicker/Assets
now includes custom serializer to properly handle unicode characters -
build.py
is now smarter about putting DLLs in the right places. Runpython build.py unity
orpython build.py unreal
for your project if you use those engines -
UE4 example has been updated to include Ask to Join
Discord_ClearPresence
added Discord_ClearPresence()
some automation for the Unreal sample
update the Unreal paths to work with shipping builds (thanks to @oreyg)
More bug fixes
- Request to join buffer sizes might have cut off some long names
- Added discriminator to JoinRequest callback data.
- Misc build-related fixes, started generating signed builds.
- Updated examples a bit
Bug fixes
Some bug fixes, small API changes
This fixes ask to join for people using Unity; C# was having trouble marshaling the structures as they were. There's a variable name change in here too, so I bumped the major version.
Ask to join
There's now a join request callback, and a function to respond.