Skip to content

[Bug]: Slash commands return: The application did not respond #173

@ToxicBiohazard

Description

@ToxicBiohazard

Describe the bug

Some slash commands occasionally return the message, "The application did not respond." This issue likely occurs because the bot does not respond within three seconds. To address this, it is recommended to use ctx.defer or to reply immediately and then check if the subsequent actions have been completed before editing the message accordingly.

To reproduce

  1. Run the command /kick, /tempban or /warn with appropriate permission on your account (role).
  2. Occasionally, you'll notice the application returns "The application did not respond".
Image

Expected behavior

The expected behaviour is that the bot handles the delay by responding promptly and updating the state (message).

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions