Packaged game crashes on launch, but in game engine it works

How I fixed it?
Don’t use a deprecated library. The DiscordRPC library hasn’t been updated for nearly 2 years now. Use a supported library!