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.";
|
||||
}
|
||||
|
||||
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`
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue