harmonyland / harmony

An easy to use Discord API Library for Deno.
https://harmony.mod.land
MIT License
318 stars 48 forks source link

[Bug] Webhooks don't send components #360

Closed Blocksnmore closed 1 year ago

Blocksnmore commented 1 year ago

What's the bug? According to discord's docs webhooks created by an application can have components inside of them, when sending a webhook using harmony it doesn't have any components

How do we reproduce it?

  1. Create a webook using a bot and get its url
  2. Clone this code https://gist.github.com/Blocksnmore/79724325119bc3094b23f08549b6b9e0
  3. Add the hook url (either to deno env or just replace it)
  4. Run code
  5. See embed without components

What should have happened? Show the components on the message

What is actually happening? Components aren't a part of the webhook

What versions you're using?

Do you have anything to tell us more about the bug? This is probably caused by the fact that the webhook send method doesn't seem to do anything with components