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

View file

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