diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-12-25 11:57:10 +0000 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2024-02-23 20:52:15 -0300 |
| commit | 5a3097c6e600051ecbe5b9fc7062d7ac4e0e1fe9 (patch) | |
| tree | b2d1c84e4b49d112c514cb59499efc2631bc6fdc | |
| parent | 6698d91382a72922dfee3bc7c20163ab8f70d0eb (diff) | |
add optional list of members
| -rw-r--r-- | 29.md | 19 |
1 files changed, 19 insertions, 0 deletions
| @@ -183,3 +183,22 @@ The list of capabilities, as defined by this NIP, for now, is the following: | |||
| 183 | ... | 183 | ... |
| 184 | } | 184 | } |
| 185 | ``` | 185 | ``` |
| 186 | |||
| 187 | - *group members* (`kind:39002`) (optional) | ||
| 188 | |||
| 189 | Similar to *group admins*, this event is supposed to be generated by relays that host the group. | ||
| 190 | |||
| 191 | 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. | ||
| 192 | |||
| 193 | ```json | ||
| 194 | { | ||
| 195 | "kind": 39002, | ||
| 196 | "content": "list of members for the pizza lovers group", | ||
| 197 | "tags": [ | ||
| 198 | ["d", "<group-id>"], | ||
| 199 | ["p", "<admin1>"], | ||
| 200 | ["p", "<member-pubkey1>"], | ||
| 201 | ["p", "<member-pubkey2>"], | ||
| 202 | ] | ||
| 203 | } | ||
| 204 | ``` | ||