- Notifications
You must be signed in to change notification settings - Fork348
Releases: discord/discord-rpc
Unity il2cpp support and callback bugfixes
e6390c8
Compare
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
Assets5
Add User Object to Ready Event Payload
64027b3
Compare
Theready()
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 thestruct
name fromDiscordJoinRequest
toDiscordUser
, to better reflect its purpose in theready()
andjoinRequest()
callbacks.
Assets5
[Bug Fix] Dynamic Handler Registration
Compare
The previous release did not properly subscribe to events onDiscord_Initialize()
when passing registered event handlers. This release fixes that bug.
Assets5
Dynamic Handler Registration
087282c
Compare
This release exports theDiscord_UpdateHandlers()
function, which allows you to dynamically register and unregister event handlers outside of the initialDiscord_Initialize()
function. It also includes an updated certificate name for signing purposes, as well as some minor bug fixes.
Assets5
Bug Fixes, API Changes, Example Updates
Compare
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 charactersbuild.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 enginesUE4 example has been updated to include Ask to Join
Assets5
Discord_ClearPresence
Compare
addedDiscord_ClearPresence()
some automation for the Unreal sample
update the Unreal paths to work with shipping builds (thanks to@oreyg)
Assets5
More bug fixes
Compare
- 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
Assets5
Bug fixes
Compare
This fixes string lengths for some longer names, and for the prebuilt stuff on windows I added/MT
to statically link the crt to avoid trouble.
Assets3
Some bug fixes, small API changes
3bdb88d
Compare
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.
Assets3
Ask to join
Compare
There's now a join request callback, and a function to respond.