Versiion 0.2.3 - Ajout Handle Case Discriminator FINAL
This commit is contained in:
parent
cebe57f190
commit
199b343d5d
@ -77,14 +77,17 @@ module.exports.getDiscordUser = function (code, session) {
|
||||
if(typeof userInfo.user.global_name == "undefined") {
|
||||
reject("MIGRATE_ACCOUNT_ONLY")
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
user.auth = authorizationKey
|
||||
Object.assign(user, userInfo)
|
||||
|
||||
|
||||
resolve(user)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}).catch(error => reject(error))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user