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

Getting Unknown Message, code 10008 when POSTing/PATCHing to a interaction after the user deletes the deferred response message. #3087

Closed
applebee1558 opened this issue Jun 6, 2021 · 2 comments
Labels

Comments

@applebee1558
Copy link
Contributor

applebee1558 commented Jun 6, 2021

Description
When someone deletes the deferred message while it is showing that bot is thinking (ack type 5), you cannot send any more messages through the webhook with the url. It'll error with

{"message": "Unknown Message", "code": 10008}

Steps to Reproduce

  1. Trigger a slash command that forces the bot to make a POST request to /interactions/<interaction_id>/<interaction_token>/callback and the type being 5
  2. Delete the message that shows a bot is thinking from the client
  3. Try making a POST request to /webhooks/<application_id>/<interaction_token> or a PATCH request to /webhooks/<application_id>/<interaction_token>/messages/@original and watch the api error.

Expected Behavior
The message will send through, possibly being linked to a deleted message, just like when you do followup messages after the original interaction message was deleted and it was ack'd with type 4.

Current Behavior
The API errors with

{"message": "Unknown Message", "code": 10008}

Screenshots/Videos

Client and System Information
OS: Windows 10, build 20H2
Client: Postman 7.28.0

@typpo
Copy link
Contributor

typpo commented Jun 7, 2021

I don't expect there to be a way to solve this - the interaction requires the original message to exist

@typpo typpo closed this as completed Jun 7, 2021
@applebee1558
Copy link
Contributor Author

Can there be a way to at least send new messages? You can do it after the deferred_response gets PATCH'd for the first time and then deleted

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

2 participants