A named bundle of permissions assignable to community members.
tid
Timestamp-based ID
Properties
channelOverrides
array
of
ref
#channelOverride
Optional
Per-channel permission overrides.
color
string
Optional
Hex colour as #rrggbb.
maxLength: 7 byteshoisted
boolean
Optional
Whether holders are listed separately in the member list.
falsementionable
boolean
Optional
Whether @role mentions resolve to this role.
falsename
string
Required
Display name.
maxLength: 32 bytesminLength: 1 bytespermissions
array
of
string
Required
Permissions granted by this role.
position
integer
Required
Hierarchy position. Higher outranks lower.
protected
boolean
Optional
Whether this role is exempt from modification and deletion. Set on the owner role created with the community.
falseView raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"name",
"permissions",
"position"
],
"properties": {
"name": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "Display name."
},
"color": {
"type": "string",
"maxLength": 7,
"description": "Hex colour as #rrggbb."
},
"hoisted": {
"type": "boolean",
"default": false,
"description": "Whether holders are listed separately in the member list."
},
"position": {
"type": "integer",
"description": "Hierarchy position. Higher outranks lower."
},
"protected": {
"type": "boolean",
"default": false,
"description": "Whether this role is exempt from modification and deletion. Set on the owner role created with the community."
},
"mentionable": {
"type": "boolean",
"default": false,
"description": "Whether @role mentions resolve to this role."
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"description": "A namespaced permission identifier."
},
"description": "Permissions granted by this role."
},
"channelOverrides": {
"type": "array",
"items": {
"ref": "#channelOverride",
"type": "ref"
},
"description": "Per-channel permission overrides."
}
}
},
"description": "A named bundle of permissions assignable to community members."
}