UserFlags
UserFlags ⇐ Bitfield
Represents a set of user flags using a bitfield.
Kind: global class
Extends: Bitfield
- UserFlags ⇐
Bitfield
- new UserFlags(…bit)
- .Default :
bigint
- .All ⇒
- .Flags :
enum
new UserFlags(…bit)
Constructs a new instance of the class.
Param | Type | Description |
---|---|---|
…bit | bigint | The 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.
Param | Type | Description |
---|---|---|
All | bigint | All 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
Name | Type | Default |
---|---|---|
Staff | bigint |
|
Partner | bigint |
|
Hypesquad | bigint |
|
Bug_Hunter_Level_1 | bigint |
|
Hypesquad_Online_House_1 | bigint |
|
Hypesquad_Online_House_2 | bigint |
|
Hypesquad_Online_House_3 | bigint |
|
Premium_Early_Supporter | bigint |
|
Team_Pseudo_User | bigint |
|
Bug_Hunter_Level_2 | bigint |
|
Verified_Bot | bigint |
|
Verified_Developer | bigint |
|
Certified_Moderator | bigint |
|
Bot_Http_Interactions | bigint |
|
Active_Developer | bigint |
|