Expose NSFW status directly on thread channel object in API responses #7850
Unanswered
scrazzz
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the Discord API does not expose the
nsfw
field for thread channels. Instead, this information can only be inferred from the parent channel’snsfw
property.This creates a limitation when using the REST API in contexts where only the thread object is provided (e.g., in interaction payloads from message commands). In these cases, the thread channel object looks like this:
As shown, there is no
nsfw
field on the thread object. Since this is a user-installed app, it cannotGET
the parent channel (the app is not authorized to access the guild). This is the only data available in the interaction payload forchannel
, which makes it impossible to determine if the thread is NSFW.According to the documentation on NSFW Threads, threads can be NSFW if their parent channel is NSFW. However, this is not reflected directly in the API response for the thread.
Request: Expose an
nsfw
field on thread channel object in API responses, similar to other channel types, either:nsfw
field (like other channels), orthread_metadata
(if that makes more sense internally).Top-level field:
Or inside
thread_metadata
:Beta Was this translation helpful? Give feedback.
All reactions