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