Version 0.2.3 - Ajout Handle Case Discriminator FINAL 3
This commit is contained in:
parent
fe73432014
commit
d6fb056096
@ -73,10 +73,8 @@ module.exports.getDiscordUser = function (code, session) {
|
|||||||
}).then(resp2 => resp2.json()).then(userInfo => {
|
}).then(resp2 => resp2.json()).then(userInfo => {
|
||||||
|
|
||||||
var user = {}
|
var user = {}
|
||||||
|
|
||||||
const global_name = userInfo.user.global_name
|
if(typeof userInfo.user == "undefined") {
|
||||||
|
|
||||||
if(typeof global_name == "undefined") {
|
|
||||||
reject("MIGRATE_ACCOUNT_ONLY")
|
reject("MIGRATE_ACCOUNT_ONLY")
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user