---
title: "The Discord Social SDK for Unity"
content_type: course
url: "https://learn.unity.com/course/discord-social-sdk-unity?language=en"
language: en
difficulty: intermediate
duration_minutes: 140
unity_version:
  - "6.3"
supported_unity_versions:
  - name: "6.3"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=6.3"
  - name: "6.2"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=6.2"
  - name: "6.1"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=6.1"
  - name: "6.0"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=6.0"
  - name: "6 Preview"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=6+Preview"
  - name: "6 Beta"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=6+Beta"
  - name: "2023.2"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=2023.2"
  - name: "2023.1"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=2023.1"
  - name: "2022.3"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=2022.3"
  - name: "2022.2"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=2022.2"
  - name: "2022.1"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=2022.1"
  - name: "2021.3"
    url: "https://learn.unity.com/course/discord-social-sdk-unity.md?language=en&version=2021.3"
last_updated: "2026-08-04T14:20:39.000Z"
---

# The Discord Social SDK for Unity

In this course, you'll learn how to integrate the Discord Social SDK’s powerful social features directly into your Unity games, creating engaging experiences that keep players connected both in-game and on Discord.

**What you'll learn**

By completing this tutorial, you’ll learn the following:

- How to set up and configure the Discord Social SDK in Unity.
- How to implement Discord OAuth2 authentication for the Social SDK.
- How to build a friends list so players can see who’s playing.
- How to implement Rich Presence for players to show what they’re doing.
- How to create and join lobbies with the Social SDK.
- How to enable a player to invite their friends to lobbies in game.
- How to enable a player to send direct messages both in game and in the Discord client.

**Before you begin**

Before you get started, you’ll need to have the following:

- **Discord account:** You'll need a Discord account in order to access the [Discord Developer Portal](https://discord.com/developers/applications). If you don't have one, create a Discord account at [Discord.com](https://discord.com/).
- **Unity 2021 or later:** The Discord Social SDK supports Unity 2021 and later.

## Contents

### [Getting started with the Discord Social SDK for Unity](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk?language=en&version=6.3)

## Overview

Welcome to Getting started with the Discord Social SDK for Unity! In this unit, you'll learn how to integrate the Discord Social SDK’s powerful social features directly into your Unity games, creating engaging experiences that keep players connected both in-game and on Discord. You'll use the Discord Social SDK to implement Discord account linking, a friends list, and Rich Presence.

## What you'll learn

By completing this unit, you’ll learn the following:

- How to set up and configure the Discord Social SDK in Unity
- How to implement Discord OAuth2 authentication for the Social SDK
- How to build a friends list so players can see who’s playing
- How to implement Rich Presence for players to show what they’re doing

## Before you begin

Before you get started, you’ll need to have the following:

- **Discord account:** You'll need a Discord account in order to access the [Discord Developer Portal](https://discord.com/developers/applications). If you don't have one, create a Discord account at [Discord.com](https://discord.com/).
- **Unity 2021 or later:** The Discord Social SDK supports Unity 2021 and later.

- [Get started with the Discord Social SDK](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/get-started-discord-sdk?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/get-started-discord-sdk.md?language=en&version=6.3)) — Get an overview of the Discord Social SDK and start configuring it in your Unity project.
- [Set up a new Unity project](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/set-up-unity-project?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/set-up-unity-project.md?language=en&version=6.3)) — Follow guided steps to set up a Unity project and import the Social SDK via the Unity Package Manager.
- [Implement account linking and authorization](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/implement-account-linking-authorization?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/implement-account-linking-authorization.md?language=en&version=6.3)) — Learn to implement an OAuth2 authentication flow to manage player login and authorization.
- [Implementing Rich Presence](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/implementing-rich-presence?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/implementing-rich-presence.md?language=en&version=6.3)) — Learn how to add and configure Rich Presence integration in your Unity project.
- [Relationships and the friends list](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/relationships-and-friends-list?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/getting-started-discord-sdk/tutorial/relationships-and-friends-list.md?language=en&version=6.3)) — Configure a friends list system inside your Unity project to manage in-app player connections.

### [Powering your game’s social layer with the Discord Social SDK](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer?language=en&version=6.3)

## Overview

In this unit, you'll learn how to integrate the Discord Social SDK’s powerful social features directly into your Unity games, creating engaging experiences that keep players connected both in-game and on Discord.

## What you'll learn

By completing this unit, you’ll learn the following:

- How to create and join lobbies with the Social SDK.
- How to enable a player to invite their friends to lobbies in game.
- How to enable a player to send direct messages both in game and in the Discord client.

## Before you begin

Before you get started, you’ll need to complete the Getting started with the Discord Social SDK for Unity tutorial. You’ll also need to have the following:

- **Discord account:** You'll need a Discord account in order to access the [Discord Developer Portal](https://discord.com/developers/applications). If you don't have one, create a Discord account at [Discord.com](https://discord.com/).
- **Unity 2021 or later:** The Discord Social SDK supports Unity 2021 and later.

- [Creating and managing game lobbies](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer/tutorial/creating-managing-game-lobbies?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer/tutorial/creating-managing-game-lobbies.md?language=en&version=6.3)) — Learn to create and manage a multiplayer game lobby inside your Unity project.
- [Implementing game invitations](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer/tutorial/implementing-game-invitations?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer/tutorial/implementing-game-invitations.md?language=en&version=6.3)) — Learn how to add game invitation features to your Unity project so users can invite others to play.
- [Direct messaging implementation](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer/tutorial/direct-messaging-implementation?language=en&version=6.3) ([md](https://learn.unity.com/course/discord-social-sdk-unity/unit/powering-your-social-layer/tutorial/direct-messaging-implementation.md?language=en&version=6.3)) — Set up a direct messaging feature inside your Unity project.
