From bfc5e46f5374289997219c35aa0b992dfaa4ec40 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Thu, 23 Dec 2021 08:44:42 +0000 Subject: [PATCH] feat: Add API error code 50109 (#268) * feat: add API error * refactor: elongate error name --- deno/rest/common.ts | 2 ++ rest/common.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deno/rest/common.ts b/deno/rest/common.ts index aa5a4f05..0af2bf83 100644 --- a/deno/rest/common.ts +++ b/deno/rest/common.ts @@ -177,6 +177,8 @@ export enum RESTJSONErrorCodes { ServerNeedsMoreBoostsToPerformThisAction = 50101, + RequestBodyContainsInvalidJSON = 50109, + TwoFactorAuthenticationIsRequired = 60003, NoUsersWithDiscordTagExist = 80004, diff --git a/rest/common.ts b/rest/common.ts index facb1bfe..c7479c6f 100644 --- a/rest/common.ts +++ b/rest/common.ts @@ -177,6 +177,8 @@ export const enum RESTJSONErrorCodes { ServerNeedsMoreBoostsToPerformThisAction = 50101, + RequestBodyContainsInvalidJSON = 50109, + TwoFactorAuthenticationIsRequired = 60003, NoUsersWithDiscordTagExist = 80004,