discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.97k stars 1.27k forks source link

NSFW marked Application Commands do not work in threads #7043

Open iced-queen opened 3 months ago

iced-queen commented 3 months ago

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

  1. Set an Application / Slash Command to NSFW.
  2. 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: img

Client and System Information

Stable 314046 (408a13e) Host 1.0.9155 x64 (49817) Build Override: N/A Windows 11 64-bit (10.0.22631)

DV8FromTheWorld commented 3 months ago

Confirmed, I see this behavior.

iced-queen commented 2 months ago

Confirmed, I see this behavior.

Do you happen to have an ETA on when this is fixed? :3