harmonyland / harmony

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

[Bug] Embed messages don't get replied to unless undefined #309

Closed Blocksnmore closed 1 year ago

Blocksnmore commented 2 years ago

What's the bug?

When you reply to a message with an embed it won't reply unless the first argument passed is undefined How do we reproduce it?

  1. Run the following 3 snippets:
    • ctx.message.reply(new Embed({"title":"Example embed","description":"Testing"}));
    • ctx.message.reply({ embeds: [new Embed({"title":"Example embed","description":"Testing"})]});
    • ctx.message.reply(undefined, { embeds: [new Embed({"title":"Example embed","description":"Testing"})]});
  2. Notice that only the last one replies to the message

What should have happened? All 3 should have replied to the message What is actually happening? The bot only replies to the last message

What versions you're using?

Do you have anything to tell us more about the bug? No

Helloyunho commented 1 year ago

about 1 year passed and finally fixed this bug... check f9bbc7902773b70bf5b123bcfdebcc905e447a81