Skip to content

Commit

Permalink
fix(UserFlags): hardcode the value of Quarantined (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Oct 29, 2022
1 parent 69aa717 commit 5091f6e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
6 changes: 5 additions & 1 deletion deno/payloads/v10/user.ts
Expand Up @@ -151,8 +151,12 @@ export enum UserFlags {
* User's account has been quarantined based on recent activity
*
* @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*
* @privateRemarks
*
* This value would be 1 << 44, but bit shifting above 1 << 30 requires bigints
*/
Quarantined = Math.pow(2, 44),
Quarantined = 17592186044416,
}

/**
Expand Down
8 changes: 6 additions & 2 deletions deno/payloads/v9/user.ts
Expand Up @@ -150,9 +150,13 @@ export enum UserFlags {
/**
* User's account has been quarantined based on recent activity
*
* @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date.
* @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date.~
*
* @privateRemarks
*
* This value would be 1 << 44, but bit shifting above 1 << 30 requires bigints
*/
Quarantined = Math.pow(2, 44),
Quarantined = 17592186044416,
}

/**
Expand Down
6 changes: 5 additions & 1 deletion payloads/v10/user.ts
Expand Up @@ -151,8 +151,12 @@ export enum UserFlags {
* User's account has been quarantined based on recent activity
*
* @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*
* @privateRemarks
*
* This value would be 1 << 44, but bit shifting above 1 << 30 requires bigints
*/
Quarantined = Math.pow(2, 44),
Quarantined = 17592186044416,
}

/**
Expand Down
8 changes: 6 additions & 2 deletions payloads/v9/user.ts
Expand Up @@ -150,9 +150,13 @@ export enum UserFlags {
/**
* User's account has been quarantined based on recent activity
*
* @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date.
* @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date.~
*
* @privateRemarks
*
* This value would be 1 << 44, but bit shifting above 1 << 30 requires bigints
*/
Quarantined = Math.pow(2, 44),
Quarantined = 17592186044416,
}

/**
Expand Down

1 comment on commit 5091f6e

@vercel
Copy link

@vercel vercel bot commented on 5091f6e Oct 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.