The Discord Game SDK repackaged as a Unity Package. For API documentation, please refer to the official Discord API docs.
This package is up to date with the official SDK as of September 16th, 2020.
The SDK is currently under extensive development and is subject to change. Suggestions about the current API are welcome.
- Create an application on the Discord developer site.
- Set a redirect URL. If you don't have one right now, just use https://127.0.0.1.
- Enable Rich Presence for the application. This enables whitelist access for the SDK.
- When you are ready to test with more people, add them to the whitelist.
- Copy the Client ID.
- Use this
CLIENT_ID
when initializing the SDK.
- Use this
Installation of this package requires Unity 2018.3 or higher.
Under Packages/manifest.json
, add the following lines, then open the Unity
Editor. Note: this will add a scoped registry to your project.
{
"dependencies": {
"com.discord.game-sdk": "2.5.6"
},
"scopedRegistries": [
{
"name": "Hourai Teahouse",
"url": "https://upm.houraiteahouse.net",
"scopes": ["com.discord"]
}
]
}
As of time of writing (November 27th 2019), the Discord Game SDK is not considered FOSS. Thus this repository has no LICENSE file. This repo is meant to be a direct mirror to make it easier to import into Unity and includes pre-built binary distributions of the package in it's source.
Note that if this third-party distribution of the SDK is not in line with Discord's Terms of Service, it will be taken down.