Skip to content

Releases: discord/discord-rpc

Unity il2cpp support and callback bugfixes

27 Nov 17:47
e6390c8
Compare
Choose a tag to 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() and Shutdown()
  • Fixed the disconnected() callback not being fired

Add User Object to Ready Event Payload

24 Apr 22:04
64027b3
Compare
Choose a tag to compare

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

29 Mar 21:39
Compare
Choose a tag to compare

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

23 Mar 17:34
087282c
Compare
Choose a tag to compare

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

27 Feb 21:49
Compare
Choose a tag to compare

API Changes

  • Discord_Register and Discord_RegisterSteam have been exported into their own header file discord_register.h

  • partyMax is now a mandatory field if you send partySize 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. Run python build.py unity or python build.py unreal for your project if you use those engines

  • UE4 example has been updated to include Ask to Join

Discord_ClearPresence

23 Jan 19:04
Compare
Choose a tag to compare

added Discord_ClearPresence()
some automation for the Unreal sample
update the Unreal paths to work with shipping builds (thanks to @oreyg)

More bug fixes

01 Dec 22:52
Compare
Choose a tag to 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

Bug fixes

09 Nov 22:31
Compare
Choose a tag to 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.

Some bug fixes, small API changes

02 Nov 19:06
3bdb88d
Compare
Choose a tag to compare
Pre-release

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

12 Oct 23:18
Compare
Choose a tag to compare
Ask to join Pre-release
Pre-release

There's now a join request callback, and a function to respond.