From 29412ec72b298385bb05b3aa2850bad795e7f796 Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Wed, 20 May 2026 20:15:07 +0000 Subject: [PATCH 1/2] Update required C++ standard to C++20 for Social SDK 1.9 The Standalone C++ getting-started guide stated C++17 as the minimum, but as of SDK 1.9 the default target is C++20 on all platforms except PlayStation 4 / PS5 with SDK older than 13.000, which still uses C++17. Updates the prereq bullet, the CMakeLists.txt starter snippet, and adds an Info callout flagging the PS exception. --- .../getting-started/using-c++.mdx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/developers/discord-social-sdk/getting-started/using-c++.mdx b/developers/discord-social-sdk/getting-started/using-c++.mdx index e834d3c573..83ab992a9a 100644 --- a/developers/discord-social-sdk/getting-started/using-c++.mdx +++ b/developers/discord-social-sdk/getting-started/using-c++.mdx @@ -23,9 +23,13 @@ This guide will walk you through integrating the Discord Social SDK into a new s We are going to make a simple C++ console application for this guide. Make sure you have the following prerequisites: - Basic understanding of C++ and your platform's build system -- C++ Compiler and Build System that supports [C++17](https://en.cppreference.com/w/cpp/17) or greater. +- C++ Compiler and Build System that supports [C++20](https://en.cppreference.com/w/cpp/20) or greater. - A network connection that can access Discord's API endpoints. + +**PlayStation 4 / PS5 exception:** If you're targeting PlayStation 4, or PlayStation 5 with a PS5 SDK older than 13.000, the Discord Social SDK still supports C++17. All other platforms (Windows, macOS, Linux, iOS, PS5 with SDK 13.000+) require C++20. + + Let's walk through the steps in detail. --- @@ -85,7 +89,7 @@ Add the following contents to the `CMakeLists.txt` file to set up the Social SDK cmake_minimum_required(VERSION 3.10) project(DiscordSDKExample) -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED True) add_executable(DiscordSDKExample main.cpp) @@ -972,9 +976,10 @@ import {InboxIcon} from '/snippets/icons/InboxIcon.jsx' ## Change Log -| Date | Changes | -|----------------|-----------------| -| March 17, 2025 | initial release | +| Date | Changes | +|----------------|----------------------------------------| +| May 20, 2026 | Updated required C++ standard to C++20 | +| March 17, 2025 | initial release | {/* Autogenerated Reference Links */} [`Activity`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#ae793d9adbe16fef402b859ba02bee682 @@ -984,4 +989,4 @@ import {InboxIcon} from '/snippets/icons/InboxIcon.jsx' [`Client::GetDefaultPresenceScopes`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a7648bd1d2f7d9a86ebd0edb8bef12b5c [`Client::GetRelationships`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ad481849835cd570f0e03adafcf90125d [`Client::UpdateToken`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a606b32cef7796f7fb91c2497bc31afc4 -[`RunCallbacks`]: https://discord.com/developers/docs/social-sdk/namespacediscordpp.html#ab5dd8cf274f581ee1885de5816be3c29 \ No newline at end of file +[`RunCallbacks`]: https://discord.com/developers/docs/social-sdk/namespacediscordpp.html#ab5dd8cf274f581ee1885de5816be3c29 From c1e7a4cf3849e5c82ce4d7887ac393d7bed664aa Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Wed, 20 May 2026 20:43:13 +0000 Subject: [PATCH 2/2] Add Game Engine and Language section to Platform Compatibility Documents minimum supported versions for Standalone C++ (C++20), Unity (2021.3), and Unreal Engine (5.5), with callouts for the PS4/PS5 C++17 carve-out and the pre-1.9 C++17 minimum. Removes the duplicate PS callout from the C++ getting-started guide now that it lives in the shared Platform Compatibility page. --- .../core-concepts/platform-compatibility.mdx | 32 +++++++++++++++++-- .../getting-started/using-c++.mdx | 12 +++---- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/developers/discord-social-sdk/core-concepts/platform-compatibility.mdx b/developers/discord-social-sdk/core-concepts/platform-compatibility.mdx index 4e1f71edcf..9763b1bb40 100644 --- a/developers/discord-social-sdk/core-concepts/platform-compatibility.mdx +++ b/developers/discord-social-sdk/core-concepts/platform-compatibility.mdx @@ -9,6 +9,31 @@ import SonyCallout from '/snippets/discord-social-sdk/callouts/sony.mdx'; You can find instructions on how to download the SDK for each platform in the [Getting Started](/developers/discord-social-sdk/getting-started) guide. +--- + +## Game Engine and Language + +The Discord Social SDK supports the following game engines and language environments: + +| Integration | Minimum Supported Version | +|----------------|---------------------------| +| Standalone C++ | C++20 | +| Unity | 2021.3 | +| Unreal Engine | 5.5 | + + + **PlayStation 4 / PS5 exception:** If you're targeting PlayStation 4, or PlayStation 5 with a PS5 SDK older than + 13.000, the Discord Social SDK still supports C++17. All other platforms require C++20. + + + + Prior to Social SDK release 1.9, C++17 is the minimum supported version. + + +--- + +## Platforms + The Discord Social SDK is available for the following platforms: | Platform | Minimum Supported Version | Support Level | Standalone C++ | Unreal Engine | Unity | @@ -62,6 +87,7 @@ Configure authentication, explore features, and get started with setup: ## Change Log -| Date | Changes | -|---------------|-----------------| -| July 21, 2025 | initial release | +| Date | Changes | +|---------------|-----------------------------------------| +| May 20, 2026 | Added Game Engine and Language section. | +| July 21, 2025 | initial release | diff --git a/developers/discord-social-sdk/getting-started/using-c++.mdx b/developers/discord-social-sdk/getting-started/using-c++.mdx index 83ab992a9a..3344d3e2c3 100644 --- a/developers/discord-social-sdk/getting-started/using-c++.mdx +++ b/developers/discord-social-sdk/getting-started/using-c++.mdx @@ -26,10 +26,6 @@ We are going to make a simple C++ console application for this guide. Make sure - C++ Compiler and Build System that supports [C++20](https://en.cppreference.com/w/cpp/20) or greater. - A network connection that can access Discord's API endpoints. - -**PlayStation 4 / PS5 exception:** If you're targeting PlayStation 4, or PlayStation 5 with a PS5 SDK older than 13.000, the Discord Social SDK still supports C++17. All other platforms (Windows, macOS, Linux, iOS, PS5 with SDK 13.000+) require C++20. - - Let's walk through the steps in detail. --- @@ -976,10 +972,10 @@ import {InboxIcon} from '/snippets/icons/InboxIcon.jsx' ## Change Log -| Date | Changes | -|----------------|----------------------------------------| -| May 20, 2026 | Updated required C++ standard to C++20 | -| March 17, 2025 | initial release | +| Date | Changes | +|----------------|---------------------------------------------------------| +| May 20, 2026 | Updated required C++ standard to C++20 with 1.9 release | +| March 17, 2025 | initial release | {/* Autogenerated Reference Links */} [`Activity`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#ae793d9adbe16fef402b859ba02bee682