{"id":21045310,"url":"https://github.com/ryanjon2040/discord-ue4","last_synced_at":"2025-07-10T12:06:57.588Z","repository":{"id":42685918,"uuid":"273183509","full_name":"ryanjon2040/Discord-UE4","owner":"ryanjon2040","description":"Plugin for integrating Discord Rich Presence.","archived":false,"fork":false,"pushed_at":"2023-07-24T16:55:06.000Z","size":482,"stargazers_count":79,"open_issues_count":4,"forks_count":22,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-03T09:52:27.725Z","etag":null,"topics":["cpp","discord","engine","plugin","ue4","unreal"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanjon2040.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-18T08:29:04.000Z","updated_at":"2025-06-05T17:29:02.000Z","dependencies_parsed_at":"2023-01-22T15:00:10.552Z","dependency_job_id":null,"html_url":"https://github.com/ryanjon2040/Discord-UE4","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ryanjon2040/Discord-UE4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanjon2040%2FDiscord-UE4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanjon2040%2FDiscord-UE4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanjon2040%2FDiscord-UE4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanjon2040%2FDiscord-UE4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanjon2040","download_url":"https://codeload.github.com/ryanjon2040/Discord-UE4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanjon2040%2FDiscord-UE4/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264577406,"owners_count":23631330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","discord","engine","plugin","ue4","unreal"],"created_at":"2024-11-19T14:21:30.335Z","updated_at":"2025-07-10T12:06:57.531Z","avatar_url":"https://github.com/ryanjon2040.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord-UE4\n\nPlugin for integrating Discord Rich Presence in Unreal Engine 4. Blueprints only example project is [available here](https://github.com/ryanjon2040/Discord-UE4-Example-Project).\n\n[![Discord Link](https://img.shields.io/discord/685402622844600329?logo=discord\u0026style=for-the-badge)](https://discord.gg/QnzVK5R) [![GitHub All Releases](https://img.shields.io/github/downloads/ryanjon2040/Discord-UE4/total?logo=github\u0026style=for-the-badge)](https://github.com/ryanjon2040/Discord-UE4/releases) ![GitHub repo size](https://img.shields.io/github/repo-size/ryanjon2040/Discord-UE4?logo=github\u0026style=for-the-badge) [![GitHub](https://img.shields.io/github/license/ryanjon2040/Discord-UE4?style=for-the-badge)](https://github.com/ryanjon2040/Discord-UE4/blob/master/LICENSE)\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/ryanjon2040?style=social)](https://twitter.com/ryanjon2040)\n\n![Rich Presence Result](Result.png)\n\n# How to\nFirst you will need to download the binaries from Discord. Head over to [Discord Developer Portal](https://discord.com/developers/docs/game-sdk/sdk-starter-guide) and download **Discord Game SDK**.\n\n![SDK_Download](Documentation/DownloadSDK.png)\n\nAfter downloading, open the zip file and extract the library files from the `lib/x86_64` folder to the following folders of this plugin:\n- `discord_game_sdk.dll` and `discord_game_sdk.dll.lib` into `Source/ThirdParty/discord-files/Win64/`\n- `discord_game_sdk.bundle` and `discord_game_sdk.dylib` into `Source/ThirdParty/discord-files/Mac/`\n- `discord_game_sdk.so` into `Source/ThirdParty/discord-files/Linux/x86_64-unknown-linux-gnu/` **and rename it to `libdiscord_game_sdk.so`**\n\nAfter copying the binary files, open the `cpp` folder inside the zip file and extract all the contents to `Source/DiscordUE4/discord-files` folder.\n\nNow you are good to go.\n\nIt is important to setup your game according to [Discord Startup Guide](https://discord.com/developers/docs/game-sdk/sdk-starter-guide). \n\nExample Setup:\n![Example Setup in Blueprint](DiscordSetup.png)\n\n# Win32 Support\n\nThis plugin does not support Win32 out-of-the-box but if you need it please check out shukenmg's repository: https://github.com/shukenmg/Discord-UE4/tree/win32\n\n# Compile error when using as Engine Plugin\n\nIn Windows, with the latest SDK there are chances you might encounter compile errors when using this plugin as an Engine plugin. You might see the following errors:\n```\nwarning C4005: 'TEXT': macro redefinition\nerror C4668: '_WIN32_WINNT_WIN10_TH2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'\nerror C4668: '_WIN32_WINNT_WIN10_RS1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'\nerror C4668: '_WIN32_WINNT_WIN10_TH2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'\nerror C4668: '_WIN32_WINNT_WIN10_TH2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'\nerror C4668: '_WIN32_WINNT_WIN10_RS2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'\nerror C4668: '_WIN32_WINNT_WIN10_RS2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'\n...\n```\nThis is because of including `windows.h` header file in Discord files. To fix it follow the steps below:\n\n1: Open `ffi.h` and replace\n\n`#include \u003cWindows.h\u003e`\n\nwith this:\n```\n#include \"Runtime/Core/Public/Windows/AllowWindowsPlatformTypes.h\"\n#include \"Runtime/Core/Public/Windows/MinWindows.h\"\n#include \"Runtime/Core/Public/Windows/HideWindowsPlatformTypes.h\"\n```\n\n2: Open `types.h` and remove `#include \u003cWindows.h\u003e`\n\nBoth files can be found under `discord-files` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanjon2040%2Fdiscord-ue4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanjon2040%2Fdiscord-ue4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanjon2040%2Fdiscord-ue4/lists"}