Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InvertedGroupMask

A collection of user group IDs. Unlike in GroupMask, users in these groups are excluded from this mask instead of included.

Hierarchy

Implements

  • Iterable<string>

Index

Constructors

constructor

Properties

size

size: number

Static ALL_PACKED

ALL_PACKED: number = ~0

Static NONE_PACKED

NONE_PACKED: 0 = 0

Methods

add

  • add(item: string): this

addAll

  • addAll(items: Iterable<string>): this

clear

  • clear(): void

delete

  • delete(item: string): boolean
  • Remove a group from this mask

    Parameters

    • item: string

      The group to remove

    Returns boolean

    Whether the group was removed from this mask

forEach

  • forEach(callbackfn: (value: string, value2: string, set: Set<string>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: string, value2: string, set: Set<string>) => void
        • (value: string, value2: string, set: Set<string>): void
        • Parameters

          • value: string
          • value2: string
          • set: Set<string>

          Returns void

    • Optional thisArg: any

    Returns void

has

  • has(item: string): boolean
  • Check if a group is in this mask

    Parameters

    • item: string

      The group to check

    Returns boolean

    Whether the group is in this mask

invert

set

  • set(items: Iterable<string>): void

Static All