UNPKG

@atproto/api

Version:

Client library for atproto and Bluesky

22 lines (20 loc) 492 B
import { ModerationCause } from './types.js' export class ModerationUI { noOverride = false filters: ModerationCause[] = [] blurs: ModerationCause[] = [] alerts: ModerationCause[] = [] informs: ModerationCause[] = [] get filter(): boolean { return this.filters.length !== 0 } get blur(): boolean { return this.blurs.length !== 0 } get alert(): boolean { return this.alerts.length !== 0 } get inform(): boolean { return this.informs.length !== 0 } }