discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Submitting modal from a 'peeked' forum thread fails

Open JakePost opened this issue 1 year ago • 0 comments

Description

Using a command interaction to open a modal from within a forum thread while it is not opened in 'Full View' causes the submission to fail and the interactions endpoint to return a 400 error with the response {"message": "Cannot execute action on this channel type", "code": 50024}.

If instead the modal is submitted with the thread in Full View, it succeeds.

Steps to Reproduce

  1. Create or open an existing thread inside of a forum channel that is not in Full View.
  2. Run an interaction that opens a modal with text input fields.
  3. Fill in the text fields and click submit.

Expected Behavior

Modal should submit without any errors and the 'bot' processing the interaction should receive a interactionCreate event.

Current Behavior

Modal does not submit and returns an 400 error on the client with the response {"message": "Cannot execute action on this channel type", "code": 50024}.

The processing bot for the interaction does not receive an event for the submission.

Screenshots/Videos

Discord_NGxGn65sbC Discord_teq13sXP6N

Client and System Information

Tested using discord running on Google Chrome and natively in Windows 11 and macOS.

JakePost avatar Aug 09 '22 23:08 JakePost