mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-12 15:09:07 -05:00
add and remove permissions actions.
This commit is contained in:
parent
16407807de
commit
d1f08d724c
4
29.md
4
29.md
|
@ -62,6 +62,8 @@ The list of capabilities, as defined by this NIP, for now, is the following:
|
||||||
- `edit-metadata`
|
- `edit-metadata`
|
||||||
- `delete-message`
|
- `delete-message`
|
||||||
- `ban-user`
|
- `ban-user`
|
||||||
|
- `add-permission`
|
||||||
|
- `remove-permission`
|
||||||
|
|
||||||
```js
|
```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", "ban-user", "<pubkey-to-ban>"],
|
||||||
["action", "delete-message", "<event-id-to-delete>"],
|
["action", "delete-message", "<event-id-to-delete>"],
|
||||||
["action", "edit-metadata", "<field-name>", "<field-value>"],
|
["action", "edit-metadata", "<field-name>", "<field-value>"],
|
||||||
|
["action", "add-permission", "<pubkey>", "<permission>"],
|
||||||
|
["action", "remove-permission", "<pubkey>", "<permission>"],
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user