From 40de8c5b7f6575eeea1d6838ad9938f1c755d0ad Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Tue, 6 May 2025 00:47:31 +0000 Subject: [PATCH] Discord Social SDK Release 1.2 Also includes an update to the social-sdk-mappings.json --- .../2025-05-05-discord-social-sdk-1.2.md | 28 +++++++++++++++++++ .../using-provisional-accounts.mdx | 2 +- tools/doxygen/social-sdk-mappings.json | 10 +++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 docs/change-log/2025-05-05-discord-social-sdk-1.2.md diff --git a/docs/change-log/2025-05-05-discord-social-sdk-1.2.md b/docs/change-log/2025-05-05-discord-social-sdk-1.2.md new file mode 100644 index 0000000000..3f8c1af572 --- /dev/null +++ b/docs/change-log/2025-05-05-discord-social-sdk-1.2.md @@ -0,0 +1,28 @@ +--- +title: "Discord Social SDK Release 1.2" +date: "2025-05-05" +topics: + - "Discord Social SDK" +--- + +A new release of the Discord Social SDK is now available, with the following updates: + +### Rich Presence +- Added support for adding custom buttons on activity cards via [`Activity::AddButton`] + +### Packaging +- Unity and Unreal plugin artifacts now contain just the additional files for console support so they can be extracted on top of the base plugin +- Unity plugin is now packaged as a .zip that you should extract inside the Packages directory of your project to enable the above +- Console archives now contain a small README with some console-specific documentation + +### Misc +- Added [`Client::OpenConnectedGamesSettingsInDiscord`] for deeplinking into Discord's settings for connected games, which provides players some control over who can DM them +- Fixed a hang that could occur on Linux in [`Client::RegisterLaunchCommand`] and [`Client::RegisterLaunchSteamApplication`] +- [`Client::RegisterLaunchCommand`] and [`Client::RegisterLaunchSteamApplication`] now work from inside the Steam Runtime on Linux +- Fixed a crash on exit that could occur when there were pending callbacks in the queue + + +[`Activity::AddButton`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#aab07650fcff18565eb78a1e2df46627e +[`Client::OpenConnectedGamesSettingsInDiscord`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a24f268f5eebe9919a3f774354eb577e0 +[`Client::RegisterLaunchCommand`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a024d7222931fdcb7d09c2b107642ecab +[`Client::RegisterLaunchSteamApplication`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a45b2c791c5b06f77d457dacb53dfba40 \ No newline at end of file diff --git a/docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx b/docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx index 44e9f22871..0c96197b0e 100644 --- a/docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx +++ b/docs/discord-social-sdk/development-guides/using-provisional-accounts.mdx @@ -421,4 +421,4 @@ Now that you've set up provisional accounts for your game, you can explore more [`Client::GetTokenFromDeviceProvisionalMerge`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#afd2207590ae7d6f60ee7bbb4fc7c21c8 [`Client::GetTokenFromProvisionalMerge`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a41062b7dafa331ddd2320daf1b4b273b [`Client::SetTokenExpirationCallback`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#aab5bfc76809ea22e79f2f7a067ac4519 -[`Client::UpdateProvisionalAccountDisplayName`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a7485979ab2d4c533b75f8efd5e50bc60 +[`Client::UpdateProvisionalAccountDisplayName`]: https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a7485979ab2d4c533b75f8efd5e50bc60 \ No newline at end of file diff --git a/tools/doxygen/social-sdk-mappings.json b/tools/doxygen/social-sdk-mappings.json index e5da83f0ae..123a66c93c 100644 --- a/tools/doxygen/social-sdk-mappings.json +++ b/tools/doxygen/social-sdk-mappings.json @@ -2,7 +2,9 @@ "discordpp::Activity::Activity": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#ab87f0347d870044bb26d8f7e50cb4c1d", "discordpp::Activity::operator=": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#a9ffd66dc9dcc40c6873802a9cc8a8926", "discordpp::Activity::operator bool": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#a646a72b3db59369215eaa65f14ac90ce", + "discordpp::Activity::AddButton": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#aab07650fcff18565eb78a1e2df46627e", "discordpp::Activity::Equals": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#a46127e59d0e582c49310d60758fed691", + "discordpp::Activity::GetButtons": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#a03ae78c821e134a53b4526018657c530", "discordpp::Activity::Name": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#a13d323c3454fe32f5d33c94fac5bc11c", "discordpp::Activity::SetName": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#a59f9a63a8b105946d0c9838f3e643ae2", "discordpp::Activity::Type": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Activity.html#afbab0968c2cbef94691b3996fe3d6ea4", @@ -34,6 +36,13 @@ "discordpp::ActivityAssets::SetSmallImage": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityAssets.html#a7f406e1e7722470e753d9acb9a0ee690", "discordpp::ActivityAssets::SmallText": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityAssets.html#a27f61aebf3ef5c2357d2d99cb4dcfeac", "discordpp::ActivityAssets::SetSmallText": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityAssets.html#aae2b92760fb365439e8ad38444acdebb", + "discordpp::ActivityButton::ActivityButton": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#a21ed35c26bed03f496214c83b143c56f", + "discordpp::ActivityButton::operator=": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#ad7893db2a6a27e4328977e2bdb2a68d6", + "discordpp::ActivityButton::operator bool": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#aae08573498def90bc33dca67fda690bb", + "discordpp::ActivityButton::Label": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#afb79ff9903a3aa609548f90e942e166e", + "discordpp::ActivityButton::SetLabel": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#a9b8d70b0f65fe094b571ef221b11e259", + "discordpp::ActivityButton::Url": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#a3e4af76071bff97a4954b57fec59a628", + "discordpp::ActivityButton::SetUrl": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityButton.html#abbeb2fc8eefae9e956d91fb42b9d48a4", "discordpp::ActivityInvite::ActivityInvite": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityInvite.html#aba6eb1d62b023511705e4110be215106", "discordpp::ActivityInvite::operator=": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityInvite.html#ad687f60430963a14ca8b8861f2894c6e", "discordpp::ActivityInvite::operator bool": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1ActivityInvite.html#a330011886f9fc05e31ff8d637efdff64", @@ -240,6 +249,7 @@ "discordpp::Client::Connect": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a873a844c7c4c72e9e693419bb3e290aa", "discordpp::Client::Disconnect": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a115b0be168a18da1119e522abaa92106", "discordpp::Client::GetStatus": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#aff09cced22a1b08cbd85b3ef25aa5f22", + "discordpp::Client::OpenConnectedGamesSettingsInDiscord": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a24f268f5eebe9919a3f774354eb577e0", "discordpp::Client::SetApplicationId": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ad452335c06b28be0406dab824acccc49", "discordpp::Client::SetLogDir": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a23bd5802dfa3072201ea864ee839c001", "discordpp::Client::SetStatusChangedCallback": "https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a9d0e8824570b93149d5d1c65bb3fb97f",