NSFW Channel data for interactions #5419
Unanswered
SammyWhamy
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.
-
I know there's a solution for nsfw slash commands in the works, this would serve as a intermediary fix
It would be very useful if interaction data would also include a nsfw boolean. This way bots could easily check if nsfw content should be permitted or not. While it's normally possible to get this data with an additional API request, this isn't the case when using a HTTP interactions bot. If the bot scope isn't used, the application won't have permissions to GET the channel, meaning there's no possible way to figure out if the channel is marked as NSFW.
This would also potentially be useful in the long term for commands where nsfw content is a possibility (e.g. search results), this way the command would not have to be marked as NSFW but can still check for NSFW state without making use of the bot scope.
Beta Was this translation helpful? Give feedback.
All reactions