Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 044276e

Browse files
committed
updated invite validator tool to support new invite types
1 parent 309b7fe commit 044276e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tool-09-Invite-Validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def extract_invite_code(url):
4545
parsed = urlparse(url)
4646
if parsed.netloc == "discord.gg":
4747
return parsed.path.lstrip("/")
48-
elif parsed.netloc == "discord.com":
48+
elif parsed.netloc in ["discord.com", "discordapp.com"]:
4949
if parsed.path.startswith("/invite/"):
5050
return parsed.path.split("/")[2]
5151
return None

0 commit comments

Comments
 (0)