app.protoimsg.chat.role
Assign a moderator role to a user for a specific room.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | chat.protoimsg.app |
| Indexed |
Checks
Validunlimited-stringdefs.main.record.properties.roleNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Assign a moderator role to a user for a specific room.",
"key": "tid",
"record": {
"properties": {
"createdAt": {
"description": "Timestamp of role assignment.",
"format": "datetime",
"type": "string"
},
"role": {
"description": "The role being assigned.",
"knownValues": [
"moderator",
"owner"
],
"type": "string"
},
"room": {
"description": "AT-URI of the room.",
"format": "at-uri",
"type": "string"
},
"subject": {
"description": "DID of the user being assigned the role.",
"format": "did",
"type": "string"
}
},
"required": [
"room",
"subject",
"role",
"createdAt"
],
"type": "object"
},
"type": "record"
}
},
"id": "app.protoimsg.chat.role",
"lexicon": 1
}