Skip to content

No Message was Sent #1631

@PhABC

Description

@PhABC

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):

  • OS: Mac
  • Terminal: bash
  • Corde version - latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions