add optional list of members

This commit is contained in:
Pablo Fernandez 2023-12-25 11:57:10 +00:00 committed by fiatjaf
parent 6698d91382
commit 5a3097c6e6

19
29.md
View File

@ -183,3 +183,22 @@ The list of capabilities, as defined by this NIP, for now, is the following:
...
}
```
- *group members* (`kind:39002`) (optional)
Similar to *group admins*, this event is supposed to be generated by relays that host the group.
It's a NIP-51-like list of pubkeys that are members of the group. Relays might choose to not to publish this information or to restrict what pubkeys can fetch it.
```json
{
"kind": 39002,
"content": "list of members for the pizza lovers group",
"tags": [
["d", "<group-id>"],
["p", "<admin1>"],
["p", "<member-pubkey1>"],
["p", "<member-pubkey2>"],
]
}
```