Versiion 0.2.3 - Ajout Handle Case Discriminator FINAL
This commit is contained in:
		@@ -77,14 +77,17 @@ 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)) 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user