added message signals

This commit is contained in:
JOLIMAITRE Matthieu 2022-08-26 02:38:16 +02:00
parent e318604ed9
commit 7ace0102be
2 changed files with 57 additions and 0 deletions

View 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",
}
}
```

View 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,
}
}
}
```