Skip to content

Commit 2bd4f19

Browse files
committed
webhook support
1 parent f0bd387 commit 2bd4f19

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/resources/Webhook.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,11 @@ Refer to [Uploading Files](#DOCS_REFERENCE/uploading-files) for details on attac
194194
195195
###### Query String Params
196196

197-
| Field | Type | Description | Required |
198-
|-----------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
199-
| wait | [boolean](#DOCS_REFERENCE/boolean-query-strings) | waits for server confirmation of message send before response, and returns the created message body (defaults to `false`; when `false` a message that is not saved does not return an error) | false |
200-
| thread_id | snowflake | Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived. | false |
197+
| Field | Type | Description | Required |
198+
|-----------------|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
199+
| wait | [boolean](#DOCS_REFERENCE/boolean-query-strings) | Waits for server confirmation of message send before response, and returns the created message body (defaults to `false`; when `false` a message that is not saved does not return an error) | false |
200+
| thread_id | snowflake | Send a message to the specified thread within a webhook's channel. The thread will automatically be unarchived. | false |
201+
| with_components | [boolean](#DOCS_REFERENCE/boolean-query-strings) | Allows the webhook to send components | false |
201202

202203
###### JSON/Form Params
203204

@@ -219,7 +220,7 @@ Refer to [Uploading Files](#DOCS_REFERENCE/uploading-files) for details on attac
219220
| poll | [poll](#DOCS_RESOURCES_POLL/poll-create-request-object) request object | A poll! | one of content, file, embeds, poll |
220221

221222

222-
\* Requires an application-owned webhook.
223+
\* Requires an application-owned webhook or `with_components` to be `true`. If this webhook is not application-owned, you cannot send components with the following [types](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types): `2` (exception is a `Link` button), `3`, `4`, `5`, `6`, `7` & `8`.
223224

224225
\*\* See [Uploading Files](#DOCS_REFERENCE/uploading-files) for details.
225226

@@ -275,9 +276,10 @@ Any provided files will be **appended** to the message. To remove or replace fil
275276
276277
###### Query String Params
277278

278-
| Field | Type | Description | Required |
279-
|-----------|-----------|------------------------------------|----------|
280-
| thread_id | snowflake | id of the thread the message is in | false |
279+
| Field | Type | Description | Required |
280+
|-----------------|--------------------------------------------------|---------------------------------------|----------|
281+
| thread_id | snowflake | id of the thread the message is in | false |
282+
| with_components | [boolean](#DOCS_REFERENCE/boolean-query-strings) | Allows the webhook to send components | false |
281283

282284
###### JSON/Form Params
283285

@@ -292,7 +294,7 @@ Any provided files will be **appended** to the message. To remove or replace fil
292294
| attachments \*\* | array of partial [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) objects | attached files to keep and possible descriptions for new files |
293295
| poll \*\*\* | [poll](#DOCS_RESOURCES_POLL/poll-create-request-object) request object | A poll! |
294296

295-
\* Requires an application-owned webhook.
297+
\* Requires an application-owned webhook or `with_components` to be `true`. If this webhook is not application-owned, you cannot send components with the following [types](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types): `2` (exception is a `Link` button), `3`, `4`, `5`, `6`, `7` & `8`.
296298

297299
\*\* See [Uploading Files](#DOCS_REFERENCE/uploading-files) for details.
298300

0 commit comments

Comments
 (0)