You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Problem Description
The current API
Webhook.send
only has the field to input thethread_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 thehttp.execute_webhook
function where thethread_name
field will be added to thepayload
.Noting that this will be a conflict between the
thread_name
andthread_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 necessaryIt 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
The text was updated successfully, but these errors were encountered: