username: string,
email: string,
role: UserRole,
+ emailVerified?: boolean,
videoQuota?: number,
videoQuotaDaily?: number,
nsfwPolicy?: NSFWPolicyType,
id: number
username: string
email: string
+ emailVerified: boolean
role: UserRole
nsfwPolicy: NSFWPolicyType
webTorrentEnabled: boolean
blocked: boolean
blockedReason?: string
- [key: string]: any
constructor (hash: UserConstructorHash) {
this.id = hash.id