add kind 9022 for leave request

This commit is contained in:
sepehr-safari 2024-08-18 14:57:50 +03:30 committed by fiatjaf_
parent 055101786b
commit 62ac522333

14
29.md
View File

@ -93,6 +93,20 @@ Any user can send one of these events to the relay in order to be automatically
}
```
- *leave request* (`kind:9022`)
Any user can send one of these events to the relay in order to be automatically removed from the group. The relay will automatically issue a `kind:9001` in response removing this user.
```js
{
"kind": 9022,
"content": "optional reason",
"tags": [
["h", "<group-id>"]
]
}
```
- *moderation events* (`kinds:9000-9020`) (optional)
Clients can send these events to a relay in order to accomplish a moderation action. Relays must check if the pubkey sending the event is capable of performing the given action. The relay may discard the event after taking action or keep it as a moderation log.