utility.linvite: dysnomia fix try 2
This commit is contained in:
		
							parent
							
								
									ee3e2b33b8
								
							
						
					
					
						commit
						db56f114ac
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -278,10 +278,9 @@ lookupinvite.callback = async function (msg, line) {
 | 
			
		|||
 | 
			
		||||
  line = line.replace(/(https?:\/\/)?discord\.gg\//, "");
 | 
			
		||||
 | 
			
		||||
  const invite = await hf.bot.requestHandler.request({
 | 
			
		||||
    method: "GET",
 | 
			
		||||
    path: `/invites/${line}?with_counts=1`,
 | 
			
		||||
  });
 | 
			
		||||
  const invite = await hf.bot.requestHandler.request("GET",
 | 
			
		||||
    `/invites/${line}?with_counts=1`,
 | 
			
		||||
  );
 | 
			
		||||
  if (!invite) return ":warning: No data returned.";
 | 
			
		||||
 | 
			
		||||
  if (invite.message) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue