utility.linvite: dysnomia fix try 2
This commit is contained in:
parent
ee3e2b33b8
commit
db56f114ac
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue