Skip to content

Conversation

@Qjuh
Copy link
Contributor

@Qjuh Qjuh commented Jul 4, 2025

Since color on role objects is deprecated the remark should reference the colors property now.

@Qjuh Qjuh requested a review from a team as a code owner July 4, 2025 06:43
@Qjuh Qjuh requested review from markmandel and removed request for a team July 4, 2025 06:43
| flags | integer | [role flags](/docs/topics/permissions#role-object-role-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) |

Roles without colors (`color == 0`) do not count towards the final computed color in the user list.
Roles without colors (`colors.primary_color == 0`) do not count towards the final computed color in the user list.
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 should it be both? colour isn't going away (even though it's deprecated), so shouldn't we document this for both values?

Copy link
Contributor

Choose a reason for hiding this comment

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

No. If I were a new developer, I want to see the current state of the API, not the past and mentions of deprecated behaviour.

Copy link
Contributor

Choose a reason for hiding this comment

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

The flip side of which is - if I'm a developer still using the deprecated API, I still want to know what's going on. I may not migrate to the new API for a while.

We might want two sentence though - it should still be clear that color is deprecated.

Maybe something like:

Roles without colors (`colors.primary_color == 0`) do not count towards the final computed color in the user list. If you are using the deprecated `color` property, it also acts in the same way.

Or something like that.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree we want to know that a field is deprecated (at least until a new API version removes it).

However, the table above already conveys this information clearly, and IMO, footnotes should be kept light and use only the new field.

Copy link
Contributor

Choose a reason for hiding this comment

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

So apparently that is the general guide for these docs 👍🏻 I stand corrected.

In which case, let's take this live! 🚀

@markmandel markmandel merged commit 5635473 into discord:main Jul 8, 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.

4 participants