From fe7343201426db8a3d12ab304153a5e5a6c77e4e Mon Sep 17 00:00:00 2001 From: Raphix Date: Tue, 22 Aug 2023 18:49:30 +0200 Subject: [PATCH] Versiion 0.2.3 - Ajout Handle Case Discriminator FINAL 5 --- src/modules/sub-auth.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/sub-auth.js b/src/modules/sub-auth.js index 933eb0d..33624bb 100644 --- a/src/modules/sub-auth.js +++ b/src/modules/sub-auth.js @@ -74,7 +74,9 @@ module.exports.getDiscordUser = function (code, session) { var user = {} - if(typeof userInfo.user.global_name == "undefined") { + const global_name = userInfo.user.global_name + + if(typeof global_name == "undefined") { reject("MIGRATE_ACCOUNT_ONLY") } else {