.
This commit is contained in:
parent
0834adf6e9
commit
ee3e2b33b8
2 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,7 @@ async function runCommand(msg, cmd, line) {
|
|||
return ret;
|
||||
}
|
||||
} catch (err) {
|
||||
logger.error("hf:cmd:" + cmd, err);
|
||||
logger.error("hf:cmd:" + cmd, err + "\n" + err.stack);
|
||||
return ":warning: An internal error occurred.";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -276,6 +276,8 @@ lookupinvite.callback = async function (msg, line) {
|
|||
return "No arguments passed.";
|
||||
}
|
||||
|
||||
line = line.replace(/(https?:\/\/)?discord\.gg\//, "");
|
||||
|
||||
const invite = await hf.bot.requestHandler.request({
|
||||
method: "GET",
|
||||
path: `/invites/${line}?with_counts=1`,
|
||||
|
|
Loading…
Reference in a new issue