Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document applied_tags on Execute Webhook #6560

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/resources/Webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Refer to [Uploading Files](#DOCS_REFERENCE/uploading-files) for details on attac
> Note that when sending a message, you must provide a value for at **least one of** `content`, `embeds`, `components`, or `file`.

> info
> If the webhook channel is a forum channel, you must provide either `thread_id` in the query string params, or `thread_name` in the JSON/form params. If `thread_id` is provided, the message will send in that thread. If `thread_name` is provided, a thread with that name will be created in the forum channel.
> If the webhook channel is a forum or media channel, you must provide either `thread_id` in the query string params, or `thread_name` in the JSON/form params. If `thread_id` is provided, the message will send in that thread. If `thread_name` is provided, a thread with that name will be created in the channel.

> warn
> Discord may strip certain characters from message content, like invalid unicode characters or characters which cause unexpected message formatting. If you are passing user-generated strings into message content, consider sanitizing the data to prevent unexpected behavior and using `allowed_mentions` to prevent unexpected mentions.
Expand All @@ -201,7 +201,8 @@ Refer to [Uploading Files](#DOCS_REFERENCE/uploading-files) for details on attac
| payload_json \*\* | string | JSON encoded body of non-file params | `multipart/form-data` only |
| attachments \*\* | array of partial [attachment](#DOCS_RESOURCES_CHANNEL/attachment-object) objects | attachment objects with filename and description | false |
| flags | integer | [message flags](#DOCS_RESOURCES_CHANNEL/message-object-message-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) (only `SUPPRESS_EMBEDS` can be set) | false |
| thread_name | string | name of thread to create (requires the webhook channel to be a forum channel) | false |
| thread_name | string | name of thread to create (requires the webhook channel to be a forum or media channel) | false |
| applied_tags | array of snowflakes | array of tag ids to apply to the thread (requires the webhook channel to be a forum or media channel) | false |

\* Requires an application-owned webhook.

Expand Down