Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locking a thread before a user app can respond results in unavoidable error #6884

Open
bignutty opened this issue May 21, 2024 · 0 comments
Open
Labels

Comments

@bignutty
Copy link

Description

Running a user app slash command in a thread, then locking the thread before the command can respond (for example via deferred message or followup) will result in an unavoidable error.

If the bot is in the server the

{"message": "Thread is archived", "code": 50083}

error will be returned by the API. If the bot is not in the server, the error will be

{"message": "Missing Access", "code": 50001}

Steps to Reproduce

  1. Run a slash command in a thread.
  2. Have the command respond with a deferred ack.
  3. Lock the thread as a moderator.
  4. Have the bot respond to the deferred command.
  5. Observe

Expected Behavior

The response message is forced ephemeral for the user who ran the command, as happens with context menu commands inside of locked threads.

Current Behavior

The API will return an error that cannot be predicted/avoided.

Screenshots/Videos

The result of your actions

  • Command gets stuck in an infinite loading state, the bot developer will see an annoying error in their logs

Client and System Information

@bignutty bignutty added the bug label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant