utility.linvite: dysnomia fix try 2

This commit is contained in:
Cynthia Foxwell 2023-01-26 22:58:05 -07:00
parent ee3e2b33b8
commit db56f114ac
1 changed files with 3 additions and 4 deletions

View File

@ -278,10 +278,9 @@ lookupinvite.callback = async function (msg, line) {
line = line.replace(/(https?:\/\/)?discord\.gg\//, "");
const invite = await hf.bot.requestHandler.request({
method: "GET",
path: `/invites/${line}?with_counts=1`,
});
const invite = await hf.bot.requestHandler.request("GET",
`/invites/${line}?with_counts=1`,
);
if (!invite) return ":warning: No data returned.";
if (invite.message) {