Skip to content

[Bug] Webhook issues #273

@Oliver-makes-code

Description

@Oliver-makes-code

What's the bug?
Currently, webhooks have a couple problems:

  1. Files are unable to be sent via webhooks.
  2. The Webhook constructor accesses this.client before it's assigned. Fixed in PR Fix latter 2 issues of #273 #274
  3. There's no proper way to fetch a Webhook from a channel without making direct API requests. Fixed in PR Fix latter 2 issues of #273 #274

With 2, it can be as easy as assigning this.client at the beginning of the constructior, with 3, a TextChannel$fetchWebhooks method could be added, and 1 has a more in-depth solution that I haven't figured out yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions