discord-api-docs
discord-api-docs copied to clipboard
NSFW marked Application Commands do not work in threads
Description
When attempting to use an Application Command that is NSFW marked in a thread channel or forum post, it returns an error message on Discord. The command does not even go through the API to the app.
Steps to Reproduce
- Set an Application / Slash Command to NSFW.
- Attempt to use it in a thread channel or forum post channel with the text channel or forum channel having the Age-Restricted Channel option toggled on.
Expected Behavior
When using a command in a thread channel or forum post channel, the system should check the channel holding the thread or post for the Age-Restricted Channel status, as threads or posts themselves cannot have this setting toggled.
Current Behavior
It appears the system may be checking the Age-Restricted Channel status of the thread or forum post channel itself, rather than the parent channel, causing this issue.
Screenshots/Videos
Error message shown on Discord:

Client and System Information
Stable 314046 (408a13e) Host 1.0.9155 x64 (49817) Build Override: N/A Windows 11 64-bit (10.0.22631)
Confirmed, I see this behavior.
Confirmed, I see this behavior.
Do you happen to have an ETA on when this is fixed? :3