Skip to content

thetestgame/Discord-Game-SDK

 
 

Repository files navigation

Discord Game SDK for Unity

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 March 3rd, 2023.

Info

The SDK is currently under extensive development and is subject to change. Suggestions about the current API are welcome.

Setup

  • Create an application on the Discord developer site.
  • Set a redirect URL. If you don't have one right now, just use http://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.

License

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.

Languages

  • C# 100.0%