Skip to content

Commit

Permalink
Add docs for editing files with webhooks (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment authored Mar 29, 2021
1 parent ad09c58 commit 70e1cce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/resources/Webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ Edits a previously-sent webhook message from the same token. Returns a [message]
###### JSON/Form Params

| Field | Type | Description |
| ---------------- | ------------------------------------------------------------------------- | -------------------------------------------- |
| content | string | the message contents (up to 2000 characters) |
| embeds | array of up to 10 [embed](#DOCS_RESOURCES_CHANNEL/embed-object) objects | embedded `rich` content |
| allowed_mentions | [allowed mention object](#DOCS_RESOURCES_CHANNEL/allowed-mentions-object) | allowed mentions for the message |
| Field | Type | Description |
| ---------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------ |
| content | string | the message contents (up to 2000 characters) |
| embeds | array of up to 10 [embed](#DOCS_RESOURCES_CHANNEL/embed-object) objects | embedded `rich` content |
| file | file contents | the contents of the file being sent/edited |
| payload_json | string | See [message create](#DOCS_RESOURCES_CHANNEL/create-message) |
| allowed_mentions | [allowed mention object](#DOCS_RESOURCES_CHANNEL/allowed-mentions-object) | allowed mentions for the message |

# Delete Webhook Message % DELETE /webhooks/{webhook.id#DOCS_RESOURCES_WEBHOOK/webhook-object}/{webhook.token#DOCS_RESOURCES_WEBHOOK/webhook-object}/messages/{message.id#DOCS_RESOURCES_CHANNEL/message-object}

Deletes a message that was created by the webhook. Returns a 204 NO CONTENT response on success.
Deletes a message that was created by the webhook. Returns a 204 NO CONTENT response on success.

0 comments on commit 70e1cce

Please sign in to comment.