harmony icon indicating copy to clipboard operation
harmony copied to clipboard

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

Open Blocksnmore opened this issue 3 years ago • 0 comments

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?

  • OS: Manjaro linux x86 Kernel 5.15.19-1-MANJARO
  • Deno: 1.16.2 (Also tested on 1.18.1)
  • Harmony: 2.5.1

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

Blocksnmore avatar Feb 13 '22 21:02 Blocksnmore