PublicUserFlags
Represents a user's flags.
Properties
Value
A number containing flags combined as a bitfield.
Constructors
fromBitfield(value)
Constructs a new PublicUserFlags instance from a bitfield. This method returns a new PublicUserFlags instance.
Internal Code warning
This method is not meant to be used outside of Voyager's internal code.
Parameters
- value : number - A bitfield.
Methods
HasFlag(flag)
Returns a boolean that represents whether the bitfield contains the flag.
Parameters
- flag : number - The flag that'll be looked for.
SetFlag(flag, toggle)
This method will toggle a flag in the bitfield either to true or false. Returns nil.
Parameters
GetFlags()
Returns a table of numbers that contain flags found in the bitfield.