Skip to content

[FEAT] Support creating thread in Forum with webhook #1721

Open
@retr0-init

Description

@retr0-init

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy