JS SDK v1.131.0
about 2 hours ago by Viktor Yordanov
Added
getUserBan(userId, disableCache?)in the Discussions namespace. It returns the user's active ban and ban history and does not require authentication.
activeBancontainsbanned,bannedAt,bannedBy,bannedPeriodInDaysandbannedReason. It isnullwhen the user has no active ban.historylists the user's past bans. Each entry hasbannedAt,bannedBy,bannedPeriodInDays,bannedReason,unbannedBy,unbannedReasonandunbannedAt. It is an empty array when the user has never been banned.
