Skip to content

Role's colors property is nullable #8132

@MahdiBM

Description

@MahdiBM

Description

https://discord.com/developers/docs/topics/permissions#role-object-role-flags

Describes Role's colors property as non-nullable, but I just bumped into a decoding issue because it was null.

Steps to Reproduce

Can provide more info if needed, but only I can run the integration tests of my library since it requires my test-bot's token.
This is the CI that failed, not sure if you can see the logs or not:
https://github.com/DiscordBM/DiscordBM/actions/runs/21912720746/job/63271062763

In a bit of rush, but if you need more info I can try to extract the JSON and all.

Expected Behavior

documentation correction.

Current Behavior

documentation is incorrectly saying colors is non-nullable.

Screenshots/Videos

No response

Client and System Information

API v10 via https://github.com/DiscordBM/DiscordBM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions