From ee3d6af7ec6ec31ac31a6e67c0bd5f949473718d Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Fri, 9 Jan 2026 20:43:47 -0500 Subject: [PATCH] Initialize data --- src/utils/oauth2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/oauth2.ts b/src/utils/oauth2.ts index 9f2cd07..87c980e 100644 --- a/src/utils/oauth2.ts +++ b/src/utils/oauth2.ts @@ -107,7 +107,7 @@ export class DiscordOAuth2 { console.error(`Non 200 code while joining user: ${options.userId} to discord (${res.status}):`); const text = await res.text(); console.error(text); - let data = null; + let data = { code: 0 }; try { data = JSON.parse(text);