summary refs log tree commit diff
path: root/src/util/UserFlags.ts
blob: 6e532f9332e84d6bee085f9921ce262ff39d64d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// https://github.com/discordjs/discord.js/blob/master/src/util/UserFlags.js
// Apache License Version 2.0 Copyright 2015 - 2021 Amish Shah

import { BitField } from "./BitField";

export class UserFlags extends BitField {
	static FLAGS = {
		DISCORD_EMPLOYEE: 1n << 0n,
		PARTNERED_SERVER_OWNER: 1n << 1n,
		HYPESQUAD_EVENTS: 1n << 2n,
		BUGHUNTER_LEVEL_1: 1n << 3n,
		HOUSE_BRAVERY: 1n << 6n,
		HOUSE_BRILLIANCE: 1n << 7n,
		HOUSE_BALANCE: 1n << 8n,
		EARLY_SUPPORTER: 1n << 9n,
		TEAM_USER: 1n << 10n,
		SYSTEM: 1n << 12n,
		BUGHUNTER_LEVEL_2: 1n << 14n,
		VERIFIED_BOT: 1n << 16n,
		EARLY_VERIFIED_BOT_DEVELOPER: 1n << 17n,
	};
}