Skip to content

Update the description for identity_enabled to be clearer #7701

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

Merged
merged 6 commits into from
Jul 23, 2025

Conversation

Sacul0457
Copy link
Contributor

Discussion from the ddevs server: https://discord.com/channels/613425648685547541/1130595287078015027/1397115430438440981

Basically, it was noted that identity_enabled mostly returns null instead of false.
This PR basically adds that it rarely returns false.

@Sacul0457 Sacul0457 requested a review from a team as a code owner July 22, 2025 08:39
@Sacul0457 Sacul0457 requested review from markmandel and removed request for a team July 22, 2025 08:39
Copy link
Contributor

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

reads this properly

@markmandel
Copy link
Contributor

Apologies - thought this was just a comma change. Got approval happy.

This rarely returns false.

Unfortunately this doesn't explain anything better, just that's it's rarely false -- which I'm not sure why it's relevant, or makes things clearer. At the very least it's should be a "This rarely returns false because...." or what I think is likely better is deeper explanation of why a user wouldn't be displaying primary guild's server tag.

I believe a user leaving a guild also returns ``false``, I could it add it but it may be really lengthy then.

Also, let me know if what I provided have exceptions or are just entirely wrong.
@Sacul0457 Sacul0457 requested a review from markmandel July 23, 2025 16:09
@markmandel
Copy link
Contributor

Sweet - thanks for all the research! This looks good to me, just triple checking it with eng before approving and merging.

| Field | Type | Description |
|-------------------|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| identity_guild_id | ?snowflake | the id of the user's primary guild |
| identity_enabled | ?boolean | whether the user is displaying the primary guild's server tag. This can be `null` if the system clears the identity, e.g. the server no longer supports tags. This can be `false`, e.g. the user manually removes their tag. |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| identity_enabled | ?boolean | whether the user is displaying the primary guild's server tag. This can be `null` if the system clears the identity, e.g. the server no longer supports tags. This can be `false`, e.g. the user manually removes their tag. |
| identity_enabled | ?boolean | whether the user is displaying the primary guild's server tag. This can be `null` if the system clears the identity, e.g. the server no longer supports tags. This will be `false` if the user manually removes their tag. |

Looks better to me

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice change. I like it. 👍🏻

Make that tweak, and we're good to merge @Sacul0457 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice change. I like it. 👍🏻

Make that tweak, and we're good to merge @Sacul0457 .

Alr, thanks!

@markmandel markmandel merged commit bb03bc2 into discord:main Jul 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy