JS SDK v1.131.0

➕

Added

getUserBan(userId, disableCache?) in the Discussions namespace. It returns the user's active ban and ban history and does not require authentication.

  • activeBan contains banned, bannedAt, bannedBy, bannedPeriodInDays and bannedReason. It is null when the user has no active ban.
  • history lists the user's past bans. Each entry has bannedAt, bannedBy, bannedPeriodInDays, bannedReason, unbannedBy, unbannedReason and unbannedAt. It is an empty array when the user has never been banned.