Skip to content

Commit

Permalink
fix(UserFlags): correct early bot dev name, remove deprecated aliases (
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC authored Dec 12, 2020
1 parent 2685b96 commit b509862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/util/UserFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class UserFlags extends BitField {}
* Numeric user flags. All available properties:
* * `DISCORD_EMPLOYEE`
* * `PARTNERED_SERVER_OWNER`
* * `DISCORD_PARTNER` **(deprecated)**
* * `HYPESQUAD_EVENTS`
* * `BUGHUNTER_LEVEL_1`
* * `HOUSE_BRAVERY`
Expand All @@ -30,14 +29,12 @@ class UserFlags extends BitField {}
* * `BUGHUNTER_LEVEL_2`
* * `VERIFIED_BOT`
* * `EARLY_VERIFIED_BOT_DEVELOPER`
* * `VERIFIED_DEVELOPER` **(deprecated)**
* @type {Object}
* @see {@link https://discord.com/developers/docs/resources/user#user-object-user-flags}
*/
UserFlags.FLAGS = {
DISCORD_EMPLOYEE: 1 << 0,
PARTNERED_SERVER_OWNER: 1 << 1,
DISCORD_PARTNER: 1 << 1,
HYPESQUAD_EVENTS: 1 << 2,
BUGHUNTER_LEVEL_1: 1 << 3,
HOUSE_BRAVERY: 1 << 6,
Expand All @@ -48,8 +45,7 @@ UserFlags.FLAGS = {
SYSTEM: 1 << 12,
BUGHUNTER_LEVEL_2: 1 << 14,
VERIFIED_BOT: 1 << 16,
EARLY_VERIFIED_DEVELOPER: 1 << 17,
VERIFIED_DEVELOPER: 1 << 17,
EARLY_VERIFIED_BOT_DEVELOPER: 1 << 17,
};

module.exports = UserFlags;
4 changes: 1 addition & 3 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3161,7 +3161,6 @@ declare module 'discord.js' {
type UserFlagsString =
| 'DISCORD_EMPLOYEE'
| 'PARTNERED_SERVER_OWNER'
| 'DISCORD_PARTNER'
| 'HYPESQUAD_EVENTS'
| 'BUGHUNTER_LEVEL_1'
| 'HOUSE_BRAVERY'
Expand All @@ -3172,8 +3171,7 @@ declare module 'discord.js' {
| 'SYSTEM'
| 'BUGHUNTER_LEVEL_2'
| 'VERIFIED_BOT'
| 'EARLY_VERIFIED_DEVELOPER'
| 'VERIFIED_DEVELOPER';
| 'EARLY_VERIFIED_BOT_DEVELOPER';

type UserResolvable = User | Snowflake | Message | GuildMember;

Expand Down

0 comments on commit b509862

Please sign in to comment.