Skip to content

Social SDK: Update UFL Guide with new helper functions #7689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

markmandel
Copy link
Contributor

@markmandel markmandel commented Jul 15, 2025

Update documentation to show how to use Client::GetRelationshipsByGroup and Client::SetRelationshipGroupsUpdatedCallback.

@markmandel markmandel requested a review from a team as a code owner July 15, 2025 00:38
@markmandel markmandel added the social-sdk Feedback and PRs on Social SDK label Jul 15, 2025
@markmandel markmandel requested review from colinloretz and anthonydiscord and removed request for a team July 15, 2025 00:38
Update documentation to show how to use
`Client::GetRelationshipsByGroup` and
`Client::SetRelationshipGroupsUpdatedCallback`.
@markmandel markmandel force-pushed the social/ufl-helper-methods branch from ddfcc6c to 474b9ad Compare July 17, 2025 22:17
@markmandel
Copy link
Contributor Author

markmandel commented Jul 17, 2025

Preview (click to de-squish):
screencapture-localhost-3336-developers-docs-discord-social-sdk-development-guides-creating-a-unified-friends-list-2025-07-17-15_17_24

Copy link
Contributor

@anthonydiscord anthonydiscord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with one nit and one question!

## Step 1: Fetch Relationships
## Approach 2: Manually Fetching Relationships and Users
In this guide, we will focus on the second approach, which gives you more control over how the friends list is displayed in your game.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"In this guide" feels a little weird to read halfway through the page, maybe something like:

Suggested change
In this guide, we will focus on the second approach, which gives you more control over how the friends list is displayed in your game.
In this section we'll show a more manual method which gives you more control over how the friends list is displayed in your game.

Comment on lines +28 to +30
The Discord friend list is ultimately constructed from two entities: Relationships, and Users. You can query
Relationships API to find everyone a user is a friend with, and the Users API to find the necessary extra information
for rendering the list, such as whether they are online or not.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this doesn't produce a visible change. Do we want to newline like this in the .mdx file? If yes I'll update mine to do the same! Makes it easier to read in the file but maybe slightly more annoying to edit unless it knows how to format the code after editing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
social-sdk Feedback and PRs on Social SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants