Skip to content

User.Presence.Activity returns only one activity (GameSDK) #5430

Open
@EliasVal

Description

@EliasVal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions