added message signals
This commit is contained in:
parent
e318604ed9
commit
7ace0102be
2 changed files with 57 additions and 0 deletions
27
specifications/signals/requests/edit_message.md
Normal file
27
specifications/signals/requests/edit_message.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# `edit_message`
|
||||
|
||||
Sent by the client to request changes of the content of a message in a specific channel to the server.
|
||||
|
||||
## data
|
||||
|
||||
- `channel_id` identifier, for the channel in which to send the message in
|
||||
- `content` string, content of the message
|
||||
|
||||
## response
|
||||
|
||||
- [edit_message](../response/edit_message_success.md)
|
||||
- [channel_not_accessible](../errors/channel_not_accessible.md)
|
||||
|
||||
## example
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 8937563975,
|
||||
"type": "request",
|
||||
"name": "edit_message",
|
||||
"data": {
|
||||
"channel_id": 897659876,
|
||||
"content": "lorem ipsum dolor amit",
|
||||
}
|
||||
}
|
||||
```
|
30
specifications/signals/response/message_create.md
Normal file
30
specifications/signals/response/message_create.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
# `edit_message`
|
||||
|
||||
Sent by the client to request changes of the content of a message in a specific channel to the server.
|
||||
|
||||
## data
|
||||
|
||||
- `message` the created message
|
||||
|
||||
## response
|
||||
|
||||
- [edit_message](../response/edit_message_success.md)
|
||||
- [channel_not_accessible](../errors/channel_not_accessible.md)
|
||||
|
||||
## example
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 8937563975,
|
||||
"type": "request",
|
||||
"name": "edit_message",
|
||||
"data": {
|
||||
"message": {
|
||||
"message_id": 87698576987,
|
||||
"author_id": 37568793569,
|
||||
"content": "lorem ipsum",
|
||||
"creation_date": 78496987687,
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue