Skip to content

Commit

Permalink
GameSDK Relationships now requires OAuth (discord#6671)
Browse files Browse the repository at this point in the history
bremea authored and shaydewael committed May 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c72b497 commit 3ba31c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/game_sdk/Relationships.md
Original file line number Diff line number Diff line change
@@ -138,6 +138,9 @@ for (int i = 0; i < relationshipsManager.Count(); i++)

Fires at initialization when Discord has cached a snapshot of the current status of all your relationships. Wait for this to fire before calling `Filter` within its callback.

> warn
> `OnRefresh` requires the `relationships.read` [OAuth2 scope](https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes). The GameSDK will return 0 relationships if the requested user has not authenticated with that scope.
###### Parameters

None

0 comments on commit 3ba31c7

Please sign in to comment.