This commit is contained in:
Cynthia Foxwell 2024-05-17 20:29:47 -06:00
parent 6e68754ecb
commit 3c2c18294c

View file

@ -765,7 +765,7 @@ lookupinvite.callback = async function (msg, line) {
return "No arguments passed.";
}
line = line.replace(/(https?:\/\/)?discord(\.gg|(app)?.com\/invites)\//, "");
line = line.replace(/(https?:\/\/)?discord(\.gg|(app)?.com\/invite)\//, "");
if (decodeURI(line).indexOf("../") > -1) return "nuh uh";
@ -2367,7 +2367,7 @@ guildinfo.callback = async function (msg, line) {
invite = await hf.bot.requestHandler.request(
"GET",
`/invites/${guild.instant_invite.replace(
/(https?:\/\/)?discord(\.gg|(app)?.com\/invites)\//,
/(https?:\/\/)?discord(\.gg|(app)?.com\/invite)\//,
""
)}?with_counts=true&with_expiration=true`
);