no s
This commit is contained in:
parent
6e68754ecb
commit
3c2c18294c
1 changed files with 2 additions and 2 deletions
|
@ -765,7 +765,7 @@ lookupinvite.callback = async function (msg, line) {
|
||||||
return "No arguments passed.";
|
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";
|
if (decodeURI(line).indexOf("../") > -1) return "nuh uh";
|
||||||
|
|
||||||
|
@ -2367,7 +2367,7 @@ guildinfo.callback = async function (msg, line) {
|
||||||
invite = await hf.bot.requestHandler.request(
|
invite = await hf.bot.requestHandler.request(
|
||||||
"GET",
|
"GET",
|
||||||
`/invites/${guild.instant_invite.replace(
|
`/invites/${guild.instant_invite.replace(
|
||||||
/(https?:\/\/)?discord(\.gg|(app)?.com\/invites)\//,
|
/(https?:\/\/)?discord(\.gg|(app)?.com\/invite)\//,
|
||||||
""
|
""
|
||||||
)}?with_counts=true&with_expiration=true`
|
)}?with_counts=true&with_expiration=true`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue