Version 0.2.3 - Ajout Handle Case Discriminator FINAL 3
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user