add and remove permissions actions.

This commit is contained in:
fiatjaf 2023-05-28 18:00:12 -03:00
parent 16407807de
commit d1f08d724c

4
29.md
View File

@ -62,6 +62,8 @@ The list of capabilities, as defined by this NIP, for now, is the following:
- `edit-metadata`
- `delete-message`
- `ban-user`
- `add-permission`
- `remove-permission`
```js
{
@ -90,6 +92,8 @@ An event sent from a client to the relay in order to accomplish a moderation act
["action", "ban-user", "<pubkey-to-ban>"],
["action", "delete-message", "<event-id-to-delete>"],
["action", "edit-metadata", "<field-name>", "<field-value>"],
["action", "add-permission", "<pubkey>", "<permission>"],
["action", "remove-permission", "<pubkey>", "<permission>"],
]
}
```