discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

`User.Presence.Activity` returns only one activity (GameSDK)

Open EliasVal opened this issue 1 year ago • 0 comments

Description

I have made #5425 but figured this is more of an issue than something that should be suggested.

Since custom statuses were introduced back in 2019, users could have multiple activities, and to accommodate that, the API started returning an array of activities instead of just one. (kind of assuming the backstory but the last part is true) But the GameSDK is still returning one activity, which means it is not possible to check if a user's friend is playing the same game as them for something like a friendlist.

Steps to Reproduce

  • Get a user (userManager.GetUser(), relationshipManager.onRefresh etc)
  • try to access the user's activity (User.Presence.Activity)

Expected Behavior

User.Presence.Activity should return an array of activities, for example an array that includes a Listening, Playing and Custom Status activities.

Current Behavior

User.Presence.Activity returns only one activity, the custom status if one is present.

Screenshots/Videos

No response

Client and System Information

I'm using the 3.2.1 version of the GameSDK for Unity/C# 2021.3.8f1, on the latest Discord Stable version.

EliasVal avatar Sep 04 '22 10:09 EliasVal