-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Description
As of SDK 3.2.1, after setting an Activity, later trying to ClearActivity results in the following internal Discord error:
ResponseError { code: InvalidPayload, message: "child \"activity\" fails because [child \"supported_platforms\" fails because [\"supported_platforms\" must contain at least 1 items]]" }
This error was previously reported in Feb 2021 in the now-retired gamesdk-and-dispatch repository.
Steps to Reproduce
Update some activity:
discord::Activity Activity {};
// Set up Activity settings here (omitted for brevity, this part is not the problem)
DiscordCore().ActivityManager().UpdateActivity(Activity, [] (discord::Result Result) {});Then try to ClearActivity:
DiscordCore().ActivityManager().ClearActivity([] (discord::Result Result) {});Expected Behavior
I expect that ClearActivity() will actually clear the activity without generating an error.
Current Behavior
- The activity does not get cleared
- An internal Discord error message is issued complaining that
supported_platformsis not set
Screenshots/Videos
No response
Client and System Information
Win64 UE 5.3 DiscordGameSample project with Discord GameSDK 3.2.1