Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Permission<T>

Type parameters

  • T: {}

Hierarchy

  • Permission

Index

Type aliases

Static PermType

PermType: { permname: string | number; permnegated?: undefined | false | true; permskip?: undefined | false | true; permvalue: number }

Type declaration

  • permname: string | number
  • Optional permnegated?: undefined | false | true
  • Optional permskip?: undefined | false | true
  • permvalue: number

Constructors

constructor

Properties

Private _negate

_negate: boolean = false

Private Optional _perm

_perm: string | number

Private _skip

_skip: boolean = false

Private _value

_value: number = 0

Private cmdRemove

cmdRemove: string

Private cmdUpdate

cmdUpdate: string

Private context

context: T

Private teamspeak

teamspeak: TeamSpeak

Private withSkipNegate

withSkipNegate: boolean

Methods

get

Private getAsPermId

Private getAsPermSid

Private getFlags

  • getFlags(): {} | { permnegated: boolean; permskip: boolean }
  • retrieves skip and negate flags

    Returns {} | { permnegated: boolean; permskip: boolean }

getNegate

  • getNegate(): boolean

getPerm

  • getPerm(): undefined | string | number

Private getPermName

  • getPermName(): "permsid" | "permid"

getSkip

  • getSkip(): boolean

getValue

  • getValue(): number

negate

perm

remove

  • remove(): Promise<[]>

skip

update

  • update(): Promise<[]>

value

Static getDefaults

Generated using TypeDoc