mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fixed User#fetchProfile, UserProfile#premium and added #flags (#1629)
* Fixed User#fetchProfile, UserProfile#premium and added #flags * made UserProfile#flags a getter and stored the raw bitfield under UserProfile#_flags * lowercased Flags
This commit is contained in:
@@ -481,6 +481,19 @@ exports.UserSettingsMap = {
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* All flags users can have:
|
||||
* - STAFF
|
||||
* - PARTNER
|
||||
* - HYPESQUAD
|
||||
* @typedef {string} UserFlags
|
||||
*/
|
||||
exports.UserFlags = {
|
||||
STAFF: 1 << 0,
|
||||
PARTNER: 1 << 1,
|
||||
HYPESQUAD: 1 << 2,
|
||||
};
|
||||
|
||||
exports.Colors = {
|
||||
DEFAULT: 0x000000,
|
||||
AQUA: 0x1ABC9C,
|
||||
|
||||
Reference in New Issue
Block a user