From fc3aa1c9110e4730c6b8ba3e36815ecd2da66c68 Mon Sep 17 00:00:00 2001 From: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com> Date: Tue, 21 Jun 2022 05:33:33 -0500 Subject: [PATCH] feat(UserFlags): add `Quarantined` flag (#495) * feat(UserFlags): add Quarantined flag * fix: change to Math.pow() * chore: add @unstable * fix: improvements to @unstable * fix: description errors --- deno/payloads/v10/user.ts | 6 ++++++ deno/payloads/v8/user.ts | 6 ++++++ deno/payloads/v9/user.ts | 6 ++++++ payloads/v10/user.ts | 6 ++++++ payloads/v8/user.ts | 6 ++++++ payloads/v9/user.ts | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/deno/payloads/v10/user.ts b/deno/payloads/v10/user.ts index 647cce72..2225edb7 100644 --- a/deno/payloads/v10/user.ts +++ b/deno/payloads/v10/user.ts @@ -147,6 +147,12 @@ export enum UserFlags { * @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date. */ Spammer = 1 << 20, + /** + * 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. + */ + Quarantined = Math.pow(2, 44), } /** diff --git a/deno/payloads/v8/user.ts b/deno/payloads/v8/user.ts index ba994f03..f8f603db 100644 --- a/deno/payloads/v8/user.ts +++ b/deno/payloads/v8/user.ts @@ -149,6 +149,12 @@ export enum UserFlags { * @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date. */ Spammer = 1 << 20, + /** + * 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. + */ + Quarantined = Math.pow(2, 44), } /** diff --git a/deno/payloads/v9/user.ts b/deno/payloads/v9/user.ts index 647cce72..2225edb7 100644 --- a/deno/payloads/v9/user.ts +++ b/deno/payloads/v9/user.ts @@ -147,6 +147,12 @@ export enum UserFlags { * @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date. */ Spammer = 1 << 20, + /** + * 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. + */ + Quarantined = Math.pow(2, 44), } /** diff --git a/payloads/v10/user.ts b/payloads/v10/user.ts index b15bd545..84cb0d6c 100644 --- a/payloads/v10/user.ts +++ b/payloads/v10/user.ts @@ -147,6 +147,12 @@ export enum UserFlags { * @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date. */ Spammer = 1 << 20, + /** + * 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. + */ + Quarantined = Math.pow(2, 44), } /** diff --git a/payloads/v8/user.ts b/payloads/v8/user.ts index 06205d71..ba03bc3a 100644 --- a/payloads/v8/user.ts +++ b/payloads/v8/user.ts @@ -149,6 +149,12 @@ export enum UserFlags { * @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date. */ Spammer = 1 << 20, + /** + * 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. + */ + Quarantined = Math.pow(2, 44), } /** diff --git a/payloads/v9/user.ts b/payloads/v9/user.ts index b15bd545..84cb0d6c 100644 --- a/payloads/v9/user.ts +++ b/payloads/v9/user.ts @@ -147,6 +147,12 @@ export enum UserFlags { * @unstable This user flag is currently not documented by Discord but has a known value which we will try to keep up to date. */ Spammer = 1 << 20, + /** + * 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. + */ + Quarantined = Math.pow(2, 44), } /**