Discord Social SDK
Loading...
Searching...
No Matches
Discord Social SDK

The Discord Social SDK lets games integrate deeply with Discord.

The SDK is a C++ library that you ship with your game, and Discord also provides Unity and Unreal Engine plugins that wrap it.

Getting Started

This site is the API reference for the Social SDK. If you're new to the SDK, or you're looking for guides and design guidance, start here:

Using This Reference

discordpp::Client is the entry point for the SDK. A typical integration:

  1. Creates a discordpp::Client.
  2. Authenticates the player, either by linking their Discord account with discordpp::Client::Authorize or by using a provisional account with discordpp::Client::GetProvisionalToken.
  3. Calls discordpp::RunCallbacks regularly, for example once per frame, so that SDK callbacks are processed.
  4. Uses the client to work with friends (discordpp::RelationshipHandle), rich presence (discordpp::Activity), lobbies (discordpp::LobbyHandle), messages (discordpp::MessageHandle), voice (discordpp::Call), and linked channels (discordpp::LinkedChannel).

The Unity and Unreal Engine plugin APIs generally match the C++ API documented here.

For what changed in each version, see the Release Notes.

Get Help