cordejs / corde

🤖 A simple e2e library for testing Discord Bots 🚀
https://cordejs.org
MIT License
120 stars 9 forks source link

No Message was Sent #1631

Open PhABC opened 1 year ago

PhABC commented 1 year ago

Describe the bug Testing a simple ping / pong command with corde, both bots behave as expected on discord but the test fails with ;

    expected: testing bot to send a message
    received: no message was sent

Here's the code for the test ;

group("Commands", () => {
  test("Ping command should return pong'", () => {
    expect("ping").toReturn("pong");
  });
});

Note the corde bot has admin privilege and I set all possible intents on the application développer portal.

Expected behavior Test should pass since my bot responded with pong

Screenshots

Screen Shot 2023-04-22 at 2 30 14 PM

Alfred's mom being the corde testing bot and the GTC one being the one we are building tests for.

Desktop (please complete the following information):