general.invite: use return

This commit is contained in:
Cynthia Foxwell 2021-05-26 12:51:14 -06:00
parent 85b81c5106
commit cc4d882d7a

View file

@ -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);