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");
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue