-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base: main
Are you sure you want to change the base?
Conversation
Update documentation to show how to use `Client::GetRelationshipsByGroup` and `Client::SetRelationshipGroupsUpdatedCallback`.
ddfcc6c
to
474b9ad
Compare
There was a problem hiding this 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. |
There was a problem hiding this comment.
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:
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. |
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. |
There was a problem hiding this comment.
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
Update documentation to show how to use
Client::GetRelationshipsByGroup
andClient::SetRelationshipGroupsUpdatedCallback
.