You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: document role gradient colors
* object
* comma
* features and more clear docs
* tables
* typo on permissions.md
Co-authored-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>
* add note about holographic style
* Reword info block on RoleColors
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
* 's
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
* Update based on the review
* 's
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
* apply suggestions and fix tables
---------
Co-authored-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
| name | string | name of the role, max 100 characters | "new role" |
1231
-
| permissions | string | bitwise value of the enabled/disabled permissions |@everyone permissions in guild |
1232
-
| color | integer | RGB color value | 0 |
1233
-
| hoist | boolean | whether the role should be displayed separately in the sidebar | false |
1234
-
| icon | ?[image data](/docs/reference#image-data)| the role's icon image (if the guild has the `ROLE_ICONS` feature) | null |
1235
-
| unicode_emoji | ?string | the role's unicode emoji as a [standard emoji](/docs/reference#message-formatting) (if the guild has the `ROLE_ICONS` feature) | null |
1236
-
| mentionable | boolean | whether the role should be mentionable | false |
| name | string | name of the role, max 100 characters | "new role" |
1237
+
| permissions | string | bitwise value of the enabled/disabled permissions |@everyone permissions in guild |
1238
+
| color*| integer | RGB color value | 0 |
1239
+
| colors |[role colors](/docs/topics/permissions#role-object-role-colors-object) object | the role's colors |[default role colors object](/docs/topics/permissions#role-object-default-role-colors-object)|
1240
+
| hoist | boolean | whether the role should be displayed separately in the sidebar | false |
1241
+
| icon | ?[image data](/docs/reference#image-data)| the role's icon image (if the guild has the `ROLE_ICONS` feature) | null |
1242
+
| unicode_emoji | ?string | the role's unicode emoji as a [standard emoji](/docs/reference#message-formatting) (if the guild has the `ROLE_ICONS` feature) | null |
1243
+
| mentionable | boolean | whether the role should be mentionable | false |
1244
+
1245
+
\*`color` will still be returned by the API, but using the `colors` field is recommended when doing requests.
| name | string | name of the role, max 100 characters |
1274
-
| permissions | string | bitwise value of the enabled/disabled permissions |
1275
-
| color | integer | RGB color value |
1276
-
| hoist | boolean | whether the role should be displayed separately in the sidebar |
1277
-
| icon |[image data](/docs/reference#image-data)| the role's icon image (if the guild has the `ROLE_ICONS` feature) |
1278
-
| unicode_emoji | string | the role's unicode emoji as a [standard emoji](/docs/reference#message-formatting) (if the guild has the `ROLE_ICONS` feature) |
1279
-
| mentionable | boolean | whether the role should be mentionable |
| name | string | name of the role, max 100 characters |
1283
+
| permissions | string | bitwise value of the enabled/disabled permissions |
1284
+
| color*| integer | RGB color value |
1285
+
| colors |[role colors](/docs/topics/permissions#role-object-role-colors-object) object | the role's colors |
1286
+
| hoist | boolean | whether the role should be displayed separately in the sidebar |
1287
+
| icon |[image data](/docs/reference#image-data)| the role's icon image (if the guild has the `ROLE_ICONS` feature) |
1288
+
| unicode_emoji | string | the role's unicode emoji as a [standard emoji](/docs/reference#message-formatting) (if the guild has the `ROLE_ICONS` feature) |
1289
+
| mentionable | boolean | whether the role should be mentionable |
1290
+
1291
+
\*`color` will still be returned by the API, but using the `colors` field is recommended when doing requests.
| color*| integer | integer representation of hexadecimal color code |
211
+
| colors |[role colors](/docs/topics/permissions#role-object-role-colors-object) object | the role's colors |
212
+
| hoist | boolean | if this role is pinned in the user listing |
213
+
| icon? | ?string | role [icon hash](/docs/reference#image-formatting)|
214
+
| unicode_emoji? | ?string | role unicode emoji |
215
+
| position | integer | position of this role (roles with the same position are sorted by id) |
216
+
| permissions | string | permission bit set |
217
+
| managed | boolean | whether this role is managed by an integration |
218
+
| mentionable | boolean | whether this role is mentionable |
219
+
| tags? |[role tags](/docs/topics/permissions#role-object-role-tags-structure) object | the tags this role has |
220
+
| flags | integer |[role flags](/docs/topics/permissions#role-object-role-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field)|
220
221
221
222
Roles without colors (`color == 0`) do not count towards the final computed color in the user list.
222
223
224
+
\*`color` will still be returned by the API, but using the `colors` field is recommended when doing requests.
225
+
223
226
###### Role Tags Structure
224
227
225
228
Tags with type `null` represent booleans. They will be present and set to `null` if they are "true", and will be not present if they are "false".
@@ -233,13 +236,43 @@ Tags with type `null` represent booleans. They will be present and set to `null`
233
236
| available_for_purchase? | null | whether this role is available for purchase |
234
237
| guild_connections? | null | whether this role is a guild's linked role |
235
238
239
+
###### Role Colors Object
240
+
241
+
This object will always be filled with `primary_color` being the role's `color`. Other fields can only be set to a non-null value if the guild has the `ENHANCED_ROLE_COLORS`[guild feature](/docs/resources/guild#guild-object-guild-features).
0 commit comments