JS SDK v1.135.0

➕

Added

Discussions: Posts now include moderatedReasonCode, the category of the violation a moderated post was removed for, such as hate_speech, online_harassment or terms_violation. Staff set it when they moderate a post, and AI moderation sets it automatically.

const post = await sdk.discussions.getPostById("14XZChm8QMTZ7HMCMYPFiJ");

if (post.moderated) {
  console.log(post.moderatedReasonCode); // "hate_speech"
}