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");
invite.category = CATEGORY;
invite.helpText = "Returns invite link for the bot.";
invite.callback = function (msg) {
msg.channel.createMessage(
`<https://discord.com/oauth2/authorize?client_id=${hf.config.client_id}&scope=bot>`
);
invite.callback = function () {
return `<https://discord.com/oauth2/authorize?client_id=${hf.config.client_id}&scope=bot>`;
};
hf.registerCommand(invite);