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
| name | string | name of the role, max 100 characters |
1281
-
| permissions | string | bitwise value of the enabled/disabled permissions |
1282
-
| color | integer | RGB color value |
1283
-
| colors |[role colors](/docs/topics/permissions#role-colors-object) object | the role's colors |
1284
-
| hoist | boolean | whether the role should be displayed separately in the sidebar |
1285
-
| icon |[image data](/docs/reference#image-data)| the role's icon image (if the guild has the `ROLE_ICONS` feature) |
1286
-
| unicode_emoji | string | the role's unicode emoji as a [standard emoji](/docs/reference#message-formatting) (if the guild has the `ROLE_ICONS` feature) |
1287
-
| mentionable | boolean | whether the role should be mentionable |
| name | string | name of the role, max 100 characters |
1281
+
| permissions | string | bitwise value of the enabled/disabled permissions |
1282
+
| color*| integer | RGB color value |
1283
+
| colors |[role colors](/docs/topics/permissions#role-colors-object) object | the role's colors |
1284
+
| hoist | boolean | whether the role should be displayed separately in the sidebar |
1285
+
| icon |[image data](/docs/reference#image-data)| the role's icon image (if the guild has the `ROLE_ICONS` feature) |
1286
+
| unicode_emoji | string | the role's unicode emoji as a [standard emoji](/docs/reference#message-formatting) (if the guild has the `ROLE_ICONS` feature) |
1287
+
| mentionable | boolean | whether the role should be mentionable |
1288
+
1289
+
\*`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-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)|
221
221
222
222
Roles without colors (`color == 0`) do not count towards the final computed color in the user list.
223
223
224
+
\*`color` will still be returned by the API, but using the `colors` field is recommended when doing requests.
225
+
224
226
###### Role Tags Structure
225
227
226
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".
@@ -238,11 +240,11 @@ Tags with type `null` represent booleans. They will be present and set to `null`
238
240
239
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