mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
Initialize data
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user