Description
Problem Description
The current API Webhook.send
only has the field to input the thread_id
. It means that the current API can only send webhook messages in an existing post.
It also applies to the normal thread in a media channel.
Proposed Solution
In official discord API documentation, this feature can be supported with thread_name
field in the request.
Therefore, we can add a thread_name
parameter in the http.execute_webhook
function where the thread_name
field will be added to the payload
.
Noting that this will be a conflict between the thread_name
and thread_id
, there should be an exclusive check between those two parameters.
The thread_name
parameter can only be valid in the forum and media channel types, so I think the check (i.e. A specific error) of current channel is also necessary
It will also introduce an additional parameter in the Webhook.send
method.
Alternatives Considered
N/A
Additional Information
https://discord.com/developers/docs/resources/webhook#execute-webhook
Code of Conduct
- I agree to follow the contribution requirements.