Skip to content

UserFlags

UserFlags ⇐ Bitfield

Represents a set of user flags using a bitfield.

Kind: global class
Extends: Bitfield

new UserFlags(…bit)

Constructs a new instance of the class.

ParamTypeDescription
…bitbigintThe arguments to pass to the superclass constructor.

UserFlags.Default : bigint

Sets the default value for the UserFlags to 0n.

Kind: static property of UserFlags
Read only: true

UserFlags.All ⇒

Combines all the values of the UserFlags.Flags object using a bitwise OR operation and assigns the result to the UserFlags.All property.

Kind: static property of UserFlags
Returns: The calculated value of UserFlags.All.

ParamTypeDescription
AllbigintAll bit value.

UserFlags.Flags : enum

An object that represents various user flags in Discord. Each flag is represented as a bit in a BigInt value.

Kind: static enum of UserFlags
Read only: true
Properties

NameTypeDefault
Staffbigint
Partnerbigint
Hypesquadbigint
Bug_Hunter_Level_1bigint
Hypesquad_Online_House_1bigint
Hypesquad_Online_House_2bigint
Hypesquad_Online_House_3bigint
Premium_Early_Supporterbigint
Team_Pseudo_Userbigint
Bug_Hunter_Level_2bigint
Verified_Botbigint
Verified_Developerbigint
Certified_Moderatorbigint
Bot_Http_Interactionsbigint
Active_Developerbigint