general.invite: use return
This commit is contained in:
		
							parent
							
								
									85b81c5106
								
							
						
					
					
						commit
						cc4d882d7a
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -152,9 +152,7 @@ hf.registerCommand(ping);
 | 
				
			||||||
const invite = new Command("invite");
 | 
					const invite = new Command("invite");
 | 
				
			||||||
invite.category = CATEGORY;
 | 
					invite.category = CATEGORY;
 | 
				
			||||||
invite.helpText = "Returns invite link for the bot.";
 | 
					invite.helpText = "Returns invite link for the bot.";
 | 
				
			||||||
invite.callback = function (msg) {
 | 
					invite.callback = function () {
 | 
				
			||||||
  msg.channel.createMessage(
 | 
					  return `<https://discord.com/oauth2/authorize?client_id=${hf.config.client_id}&scope=bot>`;
 | 
				
			||||||
    `<https://discord.com/oauth2/authorize?client_id=${hf.config.client_id}&scope=bot>`
 | 
					 | 
				
			||||||
  );
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
hf.registerCommand(invite);
 | 
					hf.registerCommand(invite);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue